From 10e5e3b6a437bf55d491ac601c2828d3e1955162 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 12 Jun 2024 17:43:19 -0700 Subject: [PATCH] min items --- src/screens/StarterPack/Wizard/index.tsx | 71 ++++++++++++++++-------- 1 file changed, 47 insertions(+), 24 deletions(-) diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index c6cc94c499..43e9229588 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -536,6 +536,8 @@ function Footer({ (state.currentStep === 'Profiles' && items.length > 1) || (state.currentStep === 'Feeds' && items.length > 0) + const minimumItems = state.currentStep === 'Profiles' ? 8 : 0 + const textStyles = [a.text_md] return ( @@ -562,7 +564,7 @@ function Footer({ }, ], ]}> - {items.length > 0 && ( + {items.length > minimumItems && ( {items.length}/{state.currentStep === 'Profiles' ? 50 : 3} @@ -631,33 +633,54 @@ function Footer({ )} )} - - {isEditEnabled ? ( + {state.currentStep === 'Profiles' && items.length < 8 && !__DEV__ ? ( + + + Add {8 - items.length} more{' '} + to + continue + + + ) : ( + + {isEditEnabled ? ( + + ) : ( + + )} - ) : ( - - )} - - + + )}