mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: paragraph style and success toast
This commit is contained in:
@@ -53,12 +53,12 @@ export default function WatchlistSelectionModal(props: WatchlistSelectionModalPr
|
|||||||
{...props.modalProps ?? {}}
|
{...props.modalProps ?? {}}
|
||||||
>
|
>
|
||||||
<Flex vertical>
|
<Flex vertical>
|
||||||
<Typography.Text>
|
<Typography.Paragraph>
|
||||||
{
|
{
|
||||||
props.description
|
props.description
|
||||||
|| t`Select one of your available watchlists`
|
|| t`Select one of your available watchlists`
|
||||||
}
|
}
|
||||||
</Typography.Text>
|
</Typography.Paragraph>
|
||||||
<Select
|
<Select
|
||||||
placeholder={t`Watchlist`}
|
placeholder={t`Watchlist`}
|
||||||
style={{width: '100%'}}
|
style={{width: '100%'}}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export default function DomainSearchPage() {
|
|||||||
const addToWatchlist = async (watchlist: Watchlist) => {
|
const addToWatchlist = async (watchlist: Watchlist) => {
|
||||||
await addDomainToWatchlist(watchlist, domain!.ldhName).then(() => {
|
await addDomainToWatchlist(watchlist, domain!.ldhName).then(() => {
|
||||||
setAddToWatchlistModal(false)
|
setAddToWatchlistModal(false)
|
||||||
|
messageApi.success(t`${domain?.ldhName} added to ${watchlist.name}`)
|
||||||
}).catch((e: AxiosError) => {
|
}).catch((e: AxiosError) => {
|
||||||
showErrorAPI(e, messageApi)
|
showErrorAPI(e, messageApi)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user