Skip to content

Commit

Permalink
extract personalInfoTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
slax57 committed Jan 14, 2025
1 parent af55714 commit 137fb95
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/contacts/ContactInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -210,6 +202,8 @@ const ContactPersonalInformationInputs = () => {
);
};

const personalInfoTypes = [{ id: 'Work' }, { id: 'Home' }, { id: 'Other' }];

const ContactMiscInputs = () => {
return (
<Stack>
Expand Down

0 comments on commit 137fb95

Please sign in to comment.