diff options
Diffstat (limited to 'src/screens/StarterPack/Wizard/index.tsx')
-rw-r--r-- | src/screens/StarterPack/Wizard/index.tsx | 116 |
1 files changed, 69 insertions, 47 deletions
diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index b231e317e..2f50e878a 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -445,7 +445,7 @@ function Footer({ ))} </View> - {items.length === 0 ? ( + {items.length === 0 /* Assuming this can only happen for feeds */ ? ( <View style={[a.gap_sm]}> <Text style={[a.font_bold, a.text_center, textStyles]}> <Trans>Add some feeds to your starter pack!</Trans> @@ -456,52 +456,74 @@ function Footer({ </View> ) : ( <Text style={[a.text_center, textStyles]}> - {state.currentStep === 'Profiles' && items.length === 1 ? ( - <Trans> - It's just you right now! Add more people to your starter pack by - searching above. - </Trans> - ) : items.length === 1 ? ( - <Trans> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex])} - </Text>{' '} - is included in your starter pack - </Trans> - ) : items.length === 2 ? ( - <Trans> - <Text style={[a.font_bold, textStyles]}>You</Text> and - <Text> </Text> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex])}{' '} - </Text> - are included in your starter pack - </Trans> - ) : state.currentStep === 'Profiles' ? ( - <Trans context="profiles"> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex])},{' '} - </Text> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex + 1])},{' '} - </Text> - and{' '} - <Plural value={items.length - 2} one="# other" other="# others" />{' '} - are included in your starter pack - </Trans> - ) : ( - <Trans context="feeds"> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex])},{' '} - </Text> - <Text style={[a.font_bold, textStyles]}> - {getName(items[initialNamesIndex + 1])},{' '} - </Text> - and{' '} - <Plural value={items.length - 2} one="# other" other="# others" />{' '} - are included in your starter pack - </Trans> - )} + { + items.length === 1 && state.currentStep === 'Profiles' ? ( + <Trans> + It's just you right now! Add more people to your starter pack by + searching above. + </Trans> + ) : items.length === 1 && state.currentStep === 'Feeds' ? ( + <Trans> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex])} + </Text>{' '} + is included in your starter pack + </Trans> + ) : items.length === 2 && state.currentStep === 'Profiles' ? ( + <Trans> + <Text style={[a.font_bold, textStyles]}>You</Text> and + <Text> </Text> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex])}{' '} + </Text> + are included in your starter pack + </Trans> + ) : items.length === 2 && state.currentStep === 'Feeds' ? ( + <Trans> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex])} + </Text>{' '} + and + <Text> </Text> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex + 1])}{' '} + </Text> + are included in your starter pack + </Trans> + ) : items.length > 2 && state.currentStep === 'Profiles' ? ( + <Trans context="profiles"> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex])},{' '} + </Text> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex + 1])},{' '} + </Text> + and{' '} + <Plural + value={items.length - 2} + one="# other" + other="# others" + />{' '} + are included in your starter pack + </Trans> + ) : items.length > 2 && state.currentStep === 'Feeds' ? ( + <Trans context="feeds"> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex])},{' '} + </Text> + <Text style={[a.font_bold, textStyles]}> + {getName(items[initialNamesIndex + 1])},{' '} + </Text> + and{' '} + <Plural + value={items.length - 2} + one="# other" + other="# others" + />{' '} + are included in your starter pack + </Trans> + ) : null /* Should not happen */ + } </Text> )} |