Skip to content

Commit

Permalink
feat: show submit button in family overview only in onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
chennara committed Dec 7, 2023
1 parent eb1bc54 commit d07f174
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/onboarding/family/familyOverview/FamilyOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const FamilyOverview = ({ navigation }: TProps) => {
const { showFamilyOnboarding } = useOnboarding();

const handleSubmit = () => {
showFamilyOnboarding ? navigation.navigate('FamilyInformation') : navigation.goBack();
navigation.navigate('FamilyInformation');
};

return (
Expand Down Expand Up @@ -108,12 +108,14 @@ export const FamilyOverview = ({ navigation }: TProps) => {
return null;
}}
/>
<View style={{ marginBottom: bottom }}>
<Styled.ConfirmButton
label={familyMembers.length > 1 ? t('ONBOARDING.FAMILY.OVERVIEW.DONE') : t('ONBOARDING.FAMILY.OVERVIEW.CANCEL')}
onPress={handleSubmit}
/>
</View>
{showFamilyOnboarding && (
<View style={{ marginBottom: bottom }}>
<Styled.ConfirmButton
label={familyMembers.length > 1 ? t('ONBOARDING.FAMILY.OVERVIEW.DONE') : t('ONBOARDING.FAMILY.OVERVIEW.CANCEL')}
onPress={handleSubmit}
/>
</View>
)}
</>
);
};

0 comments on commit d07f174

Please sign in to comment.