add done button to standalone flow

This commit is contained in:
Samuel Newman
2025-12-10 19:54:59 +02:00
parent 1c9449edde
commit 6c77746a50
@@ -79,7 +79,6 @@ export function ViewMatches({
}) { }) {
const t = useTheme() const t = useTheme()
const {_} = useLingui() const {_} = useLingui()
const t = useTheme()
const gutter = useGutters([0, 'wide']) const gutter = useGutters([0, 'wide'])
const moderationOpts = useModerationOpts() const moderationOpts = useModerationOpts()
const queryClient = useQueryClient() const queryClient = useQueryClient()
@@ -364,7 +363,6 @@ export function ViewMatches({
ListFooterComponent={!isEmpty ? <ListFooter /> : null} ListFooterComponent={!isEmpty ? <ListFooter /> : null}
keyExtractor={keyExtractor} keyExtractor={keyExtractor}
/> />
{context === 'Onboarding' && (
<View <View
style={[ style={[
t.atoms.bg, t.atoms.bg,
@@ -377,16 +375,19 @@ export function ViewMatches({
{paddingBottom: insets.bottom + tokens.space.md}, {paddingBottom: insets.bottom + tokens.space.md},
]}> ]}>
<Button <Button
label={_(msg`Next`)} label={context === 'Onboarding' ? _(msg`Next`) : _(msg`Done`)}
onPress={onNext} onPress={onNext}
size="large" size="large"
color="primary"> color="primary">
<ButtonText> <ButtonText>
{context === 'Onboarding' ? (
<Trans>Next</Trans> <Trans>Next</Trans>
) : (
<Trans>Done</Trans>
)}
</ButtonText> </ButtonText>
</Button> </Button>
</View> </View>
)}
</View> </View>
) )
} }