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 ?? {}}
|
||||
>
|
||||
<Flex vertical>
|
||||
<Typography.Text>
|
||||
<Typography.Paragraph>
|
||||
{
|
||||
props.description
|
||||
|| t`Select one of your available watchlists`
|
||||
}
|
||||
</Typography.Text>
|
||||
</Typography.Paragraph>
|
||||
<Select
|
||||
placeholder={t`Watchlist`}
|
||||
style={{width: '100%'}}
|
||||
|
||||
@@ -47,6 +47,7 @@ export default function DomainSearchPage() {
|
||||
const addToWatchlist = async (watchlist: Watchlist) => {
|
||||
await addDomainToWatchlist(watchlist, domain!.ldhName).then(() => {
|
||||
setAddToWatchlistModal(false)
|
||||
messageApi.success(t`${domain?.ldhName} added to ${watchlist.name}`)
|
||||
}).catch((e: AxiosError) => {
|
||||
showErrorAPI(e, messageApi)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user