A full-featured CRM built with React, shadcn/ui, and Supabase.
extract personalInfoTypes
Jean-Baptiste Kaiser137fb957b3a2
diff --git a/src/contacts/ContactInputs.tsx b/src/contacts/ContactInputs.tsxindex 6bb828ea..6159835d 100644--- a/src/contacts/ContactInputs.tsx+++ b/src/contacts/ContactInputs.tsx@@ -167,11 +167,7 @@ const ContactPersonalInformationInputs = () => {source="type"helperText={false}optionText="id"- choices={[- { id: 'Work' },- { id: 'Home' },- { id: 'Other' },- ]}+ choices={personalInfoTypes}defaultValue="Work"fullWidth={false}sx={{ width: 100, minWidth: 100 }}@@ -189,11 +185,7 @@ const ContactPersonalInformationInputs = () => {source="type"helperText={false}optionText="id"- choices={[- { id: 'Work' },- { id: 'Home' },- { id: 'Other' },- ]}+ choices={personalInfoTypes}defaultValue="Work"fullWidth={false}sx={{ width: 100, minWidth: 100 }}@@ -210,6 +202,8 @@ const ContactPersonalInformationInputs = () => {);};+const personalInfoTypes = [{ id: 'Work' }, { id: 'Home' }, { id: 'Other' }];+const ContactMiscInputs = () => {return (<Stack>