mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: various missing component array keys
This commit is contained in:
@@ -22,16 +22,16 @@ export function ConnectorsList({connectors, onDelete}: { connectors: ConnectorEl
|
|||||||
<>
|
<>
|
||||||
<Divider/>
|
<Divider/>
|
||||||
{connectors.map(connector => {
|
{connectors.map(connector => {
|
||||||
const createdAt = <Typography.Text strong>
|
const createdAt = <Typography.Text strong key={"createdAt"}>
|
||||||
{new Date(connector.createdAt).toLocaleString()}
|
{new Date(connector.createdAt).toLocaleString()}
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
const {watchlistCount} = connector
|
const {watchlistCount} = connector
|
||||||
const connectorName = Object.keys(ConnectorProvider).find(p => ConnectorProvider[p as keyof typeof ConnectorProvider] === connector.provider)
|
const connectorName = Object.keys(ConnectorProvider).find(p => ConnectorProvider[p as keyof typeof ConnectorProvider] === connector.provider)
|
||||||
|
|
||||||
return <>
|
return <Card
|
||||||
{contextHolder}
|
hoverable
|
||||||
<Card
|
key={connector.id}
|
||||||
hoverable title={<Space>
|
title={<Space>
|
||||||
{t`Connector ${connectorName}`}<Typography.Text code>{connector.id}</Typography.Text>
|
{t`Connector ${connectorName}`}<Typography.Text code>{connector.id}</Typography.Text>
|
||||||
</Space>}
|
</Space>}
|
||||||
size='small'
|
size='small'
|
||||||
@@ -45,6 +45,7 @@ export function ConnectorsList({connectors, onDelete}: { connectors: ConnectorEl
|
|||||||
><DeleteFilled style={{color: token.colorError}}/>
|
><DeleteFilled style={{color: token.colorError}}/>
|
||||||
</Popconfirm>}
|
</Popconfirm>}
|
||||||
>
|
>
|
||||||
|
{contextHolder}
|
||||||
<Typography.Paragraph>{jt`Creation date: ${createdAt}`}</Typography.Paragraph>
|
<Typography.Paragraph>{jt`Creation date: ${createdAt}`}</Typography.Paragraph>
|
||||||
<Typography.Paragraph>{t`Used in: ${watchlistCount} Watchlist`}</Typography.Paragraph>
|
<Typography.Paragraph>{t`Used in: ${watchlistCount} Watchlist`}</Typography.Paragraph>
|
||||||
<Card.Meta description={
|
<Card.Meta description={
|
||||||
@@ -58,7 +59,6 @@ The creation date corresponds to the date on which you consented to the creation
|
|||||||
</>
|
</>
|
||||||
}/>
|
}/>
|
||||||
</Card>
|
</Card>
|
||||||
</>
|
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export function TrackedDomainTable() {
|
|||||||
const REDEMPTION_NOTICE = (
|
const REDEMPTION_NOTICE = (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={t`At least one domain name is in redemption period and will potentially be deleted soon`}
|
title={t`At least one domain name is in redemption period and will potentially be deleted soon`}
|
||||||
|
key="redeptionNotice"
|
||||||
>
|
>
|
||||||
<Tag color={eppStatusCodeToColor('redemption period')}>redemption period</Tag>
|
<Tag color={eppStatusCodeToColor('redemption period')}>redemption period</Tag>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -36,6 +37,7 @@ export function TrackedDomainTable() {
|
|||||||
const PENDING_DELETE_NOTICE = (
|
const PENDING_DELETE_NOTICE = (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={t`At least one domain name is pending deletion and will soon become available for registration again`}
|
title={t`At least one domain name is pending deletion and will soon become available for registration again`}
|
||||||
|
key="pendingDeleteNotice"
|
||||||
>
|
>
|
||||||
<Tag color={eppStatusCodeToColor('pending delete')}>pending delete</Tag>
|
<Tag color={eppStatusCodeToColor('pending delete')}>pending delete</Tag>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -222,6 +224,7 @@ export function TrackedDomainTable() {
|
|||||||
text: <Tooltip
|
text: <Tooltip
|
||||||
placement='bottomLeft'
|
placement='bottomLeft'
|
||||||
title={rdapStatusCodeDetailTranslated[s as keyof typeof rdapStatusCodeDetailTranslated] || undefined}
|
title={rdapStatusCodeDetailTranslated[s as keyof typeof rdapStatusCodeDetailTranslated] || undefined}
|
||||||
|
key={s}
|
||||||
>
|
>
|
||||||
<Tag color={eppStatusCodeToColor(s)}>{s}</Tag>
|
<Tag color={eppStatusCodeToColor(s)}>{s}</Tag>
|
||||||
</Tooltip>,
|
</Tooltip>,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export function statusToTag(s: string) {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
placement='bottomLeft'
|
placement='bottomLeft'
|
||||||
title={rdapStatusCodeDetailTranslated[s as keyof typeof rdapStatusCodeDetailTranslated] || undefined}
|
title={rdapStatusCodeDetailTranslated[s as keyof typeof rdapStatusCodeDetailTranslated] || undefined}
|
||||||
|
key={s}
|
||||||
>
|
>
|
||||||
<Tag color={eppStatusCodeToColor(s)}>{s}</Tag>
|
<Tag color={eppStatusCodeToColor(s)}>{s}</Tag>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user