From 14d089073bed8ca210a8ce6b698f7a9624b089e7 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Fri, 11 Jul 2025 20:31:36 +0200 Subject: [PATCH] Make `NewCustomerModal` props readonly to ensure immutability --- .../components/customers/modal/NewCustomerModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_frontend/components/customers/modal/NewCustomerModal.tsx b/internal_frontend/components/customers/modal/NewCustomerModal.tsx index 9b127b6..65a8d68 100644 --- a/internal_frontend/components/customers/modal/NewCustomerModal.tsx +++ b/internal_frontend/components/customers/modal/NewCustomerModal.tsx @@ -20,7 +20,7 @@ interface NewCustomerModalProps { onCustomerCreated?: () => void; } -export function NewCustomerModal({ onCustomerCreated }: NewCustomerModalProps) { +export function NewCustomerModal({onCustomerCreated}: Readonly) { const [step, setStep] = useState(1); const [open, setOpen] = useState(false); const [email, setEmail] = useState("");