fix(dashboard): secret key display (#11365)

CLOSES CMRC-917
This commit is contained in:
Frane Polić
2025-02-11 16:08:46 +01:00
committed by GitHub
parent 69cce1a4e2
commit ca486aa7ed

View File

@@ -154,7 +154,9 @@ export const ApiKeyGeneralSection = ({ apiKey }: ApiKeyGeneralSectionProps) => {
{t("fields.key")}
</Text>
{apiKey.type === "secret" ? (
<Badge size="2xsmall">{prettifyRedactedToken(apiKey.redacted)}</Badge>
<Badge size="2xsmall" className="inline-block w-fit">
{prettifyRedactedToken(apiKey.redacted)}
</Badge>
) : (
<Copy asChild content={apiKey.token} className="cursor-pointer">
<Badge size="2xsmall" className="text-ui-tag-neutral-text">