Handle layout shift, add Let's Go! text

This commit is contained in:
Eric Bailey
2025-08-26 14:58:48 -05:00
parent 4748899c26
commit 6a7ea8c3d1
+11 -2
View File
@@ -59,6 +59,7 @@ import {
} from '#/alf' } from '#/alf'
import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import {IconCircle} from '#/components/IconCircle' import {IconCircle} from '#/components/IconCircle'
import {ArrowRight_Stroke2_Corner0_Rounded as ArrowRight} from '#/components/icons/Arrow'
import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth' import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
import {News2_Stroke2_Corner0_Rounded as News} from '#/components/icons/News2' import {News2_Stroke2_Corner0_Rounded as News} from '#/components/icons/News2'
@@ -474,9 +475,17 @@ function ValueProposition({
} }
onPress={onPress}> onPress={onPress}>
<ButtonText> <ButtonText>
{saving ? <Trans>Finalizing</Trans> : <Trans>Next</Trans>} {saving ? (
<Trans>Finalizing</Trans>
) : subStep === 2 ? (
<Trans>Let's go!</Trans>
) : (
<Trans>Next</Trans>
)}
</ButtonText> </ButtonText>
{saving && <ButtonIcon icon={Loader} />} {subStep === 2 && (
<ButtonIcon icon={saving ? Loader : ArrowRight} />
)}
</Button> </Button>
</View> </View>
</OnboardingControls.Portal> </OnboardingControls.Portal>