Make NewCustomerModal props readonly to ensure immutability
This commit is contained in:
@@ -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("");
|
||||||
|
|||||||
Reference in New Issue
Block a user