From 25cc84b7937df771f6c5824e49fae4fb01b2203e Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 11 Jun 2024 14:16:45 -0700 Subject: [PATCH] dont show count if there are no items yet --- src/screens/StarterPack/Wizard/index.tsx | 71 ++++++++++-------------- 1 file changed, 29 insertions(+), 42 deletions(-) diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index 37e3d40d98..cc8b604915 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -511,11 +511,13 @@ function Footer({ }, ], ]}> - - - {items.length}/{state.currentStep === 'Profiles' ? 50 : 3} - - + {items.length > 0 && ( + + + {items.length}/{state.currentStep === 'Profiles' ? 50 : 3} + + + )} @@ -533,24 +535,13 @@ function Footer({ {items.length === 0 ? ( - {state.currentStep === 'Profiles' ? ( - You haven't added anyone to your starter pack yet! - ) : ( - You haven't added any suggested feeds yet! - )} + Optionally, add some feeds to your starter pack! - {state.currentStep === 'Profiles' ? ( - - Search for people that you want to suggest to others, or skip - for now and add some later. - - ) : ( - - Search for feeds that you want to suggest to others, or skip for - now and add some later. - - )} + + Search for feeds that you want to suggest to others, or skip for + now and add some later. + ) : ( @@ -584,15 +575,9 @@ function Footer({ )} )} - - {isEditEnabled && ( - + + {isEditEnabled ? ( - - - )} + ) : ( + + )} + +