style: react component prop readonly

This commit is contained in:
ReaJason
2025-03-30 15:33:31 +08:00
parent 5d97780e34
commit b8e91a3697
12 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ interface CopyableFieldProps {
text?: string;
}
export function CopyableField({ label, value, text }: CopyableFieldProps) {
export function CopyableField({ label, value, text }: Readonly<CopyableFieldProps>) {
const [hasCopied, setHasCopied] = useState(false);
const { t } = useTranslation();