mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-24 07:51:52 +08:00
style: react component prop readonly
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user