From b69f4498fe11c488015df9935af7a17e53ef5e4a Mon Sep 17 00:00:00 2001 From: Nitin Koche Date: Thu, 29 Aug 2024 12:45:18 +0530 Subject: [PATCH] fix lint --- .../components/SettingsDataModelFieldTypeSelect.tsx | 5 ++--- .../SettingsObjectNewFieldStep2.tsx | 11 ++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldTypeSelect.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldTypeSelect.tsx index 61f6287623bf..d156dbc71bad 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldTypeSelect.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldTypeSelect.tsx @@ -119,13 +119,12 @@ export const SettingsDataModelFieldTypeSelect = ({ default: break; } - }; + }; return ( (
diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx index fdc0cec0098b..64c850fc27aa 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx @@ -47,7 +47,7 @@ export const SettingsObjectNewFieldStep2 = () => { const [searchParams] = useSearchParams(); const fieldType = searchParams.get('fieldType') as SettingsSupportedFieldType; const { enqueueSnackBar } = useSnackBar(); - + const [isConfigureStep, setIsConfigureStep] = useState(false); const { findActiveObjectMetadataItemBySlug } = useFilteredObjectMetadataItems(); @@ -184,9 +184,7 @@ export const SettingsObjectNewFieldStep2 = () => { }, { children: 'New Field' }, { - children: !isConfigureStep - ? '1. Type' - : '2. Configure', + children: !isConfigureStep ? '1. Type' : '2. Configure', }, ]} /> @@ -215,7 +213,7 @@ export const SettingsObjectNewFieldStep2 = () => { ? '1. Select a field type' : '2. Configure field' } - fontColor={H1TitleFontColor.Primary} + fontColor={H1TitleFontColor.Primary} /> {!isConfigureStep ? ( @@ -224,10 +222,9 @@ export const SettingsObjectNewFieldStep2 = () => { fieldMetadataItem={{ type: fieldType, }} - onFieldTypeSelect={() => setIsConfigureStep(true)} /> - ) : ( + ) : ( <>