diff --git a/apps/webapp/app/components/primitives/ClipboardField.tsx b/apps/webapp/app/components/primitives/ClipboardField.tsx index c73c78999..ef2e6f810 100644 --- a/apps/webapp/app/components/primitives/ClipboardField.tsx +++ b/apps/webapp/app/components/primitives/ClipboardField.tsx @@ -69,7 +69,7 @@ const variations = { type ClipboardFieldProps = { value: string; - secure?: boolean; + secure?: boolean | string; variant: keyof typeof variations; className?: string; icon?: IconNames | React.ReactNode; @@ -82,7 +82,7 @@ export function ClipboardField({ className, icon, }: ClipboardFieldProps) { - const [isSecure, setIsSecure] = useState(secure); + const [isSecure, setIsSecure] = useState(secure !== undefined && secure); const [copied, setCopied] = useState(false); const copy = useCallback( @@ -120,7 +120,13 @@ export function ClipboardField({ +
+ + + + } + secure="npx ••••••••" + /> + + + + + } + secure="npx ••••••••" + /> + +
); }