Make NewCustomerModal props readonly to ensure immutability

This commit is contained in:
2025-07-11 20:31:36 +02:00
parent b62ee3e9ad
commit 14d089073b

View File

@@ -20,7 +20,7 @@ interface NewCustomerModalProps {
onCustomerCreated?: () => void; onCustomerCreated?: () => void;
} }
export function NewCustomerModal({ onCustomerCreated }: NewCustomerModalProps) { export function NewCustomerModal({onCustomerCreated}: Readonly<NewCustomerModalProps>) {
const [step, setStep] = useState(1); const [step, setStep] = useState(1);
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
const [email, setEmail] = useState(""); const [email, setEmail] = useState("");