feat: paragraph style and success toast

This commit is contained in:
vinceh121
2025-11-01 23:20:37 +01:00
parent 561019c3d7
commit ecdc834585
2 changed files with 3 additions and 2 deletions

View File

@@ -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%'}}

View File

@@ -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)
})