feat: add Registry Lock and Registrar Lock badges

This commit is contained in:
Maël Gangloff
2024-12-29 22:31:40 +01:00
parent f86153049b
commit 23fca8602e
10 changed files with 98 additions and 66 deletions

View File

@@ -12,9 +12,8 @@ export function EntitiesList({domain}: { domain: Domain }) {
const rdapRoleDetailTranslated = rdapRoleDetailTranslation()
const roleToTag = (r: string) => <Tooltip
title={r in rdapRoleDetailTranslated ? rdapRoleDetailTranslated[r as keyof typeof rdapRoleDetailTranslated] : undefined}>
<Tag color={rolesToColor([r])}>{
r in rdapRoleTranslated ? rdapRoleTranslated[r as keyof typeof rdapRoleTranslated] : r
title={rdapRoleDetailTranslated[r as keyof typeof rdapRoleDetailTranslated] || undefined}>
<Tag color={rolesToColor([r])}>{rdapRoleTranslated[r as keyof typeof rdapRoleTranslated] || r
}</Tag>
</Tooltip>