fix: display an icon even if the event action is not standard

This commit is contained in:
Maël Gangloff
2024-12-19 13:48:26 +01:00
parent 1b3e5c5ef8
commit 7c606e2697
4 changed files with 8 additions and 7 deletions

View File

@@ -80,12 +80,12 @@ export function WatchlistCard({watchlist, onUpdateWatchlist, connectors, onDelet
dataSource={[{
domains: watchlist.domains.map(d => <Tag
color={
d.deleted ? 'magenta' : // If the domain is deleted
d.deleted ? 'magenta' :
d.status.includes('redemption period') ? 'yellow' :
d.status.includes('pending delete') ? 'volcano' : 'default'
}
icon={
d.deleted ? <DeleteOutlined/> : // If the domain is deleted
d.deleted ? <DeleteOutlined/> :
d.status.includes('redemption period') ? <ExclamationCircleOutlined/> :
d.status.includes('pending delete') ? <DeleteOutlined/> : null
}>{punycode.toUnicode(d.ldhName)}</Tag>),