diff options
Diffstat (limited to 'src/screens/Onboarding/StepProfile')
-rw-r--r-- | src/screens/Onboarding/StepProfile/index.tsx | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/screens/Onboarding/StepProfile/index.tsx b/src/screens/Onboarding/StepProfile/index.tsx new file mode 100644 index 000000000..8db3e7761 --- /dev/null +++ b/src/screens/Onboarding/StepProfile/index.tsx @@ -0,0 +1,55 @@ +import React from 'react' +import {View} from 'react-native' +import {msg, Trans} from '@lingui/macro' +import {useLingui} from '@lingui/react' + +import { + DescriptionText, + OnboardingControls, + TitleText, +} from '#/screens/Onboarding/Layout' +import {Context} from '#/screens/Onboarding/state' +import {atoms as a} from '#/alf' +import {Button, ButtonIcon, ButtonText} from '#/components/Button' +import {IconCircle} from '#/components/IconCircle' +import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' +import {StreamingLive_Stroke2_Corner0_Rounded as StreamingLive} from '#/components/icons/StreamingLive' + +export function StepProfile() { + const {_} = useLingui() + const {dispatch} = React.useContext(Context) + + const onContinue = React.useCallback(() => { + dispatch({type: 'next'}) + }, [dispatch]) + + return ( + <View style={[a.align_start]}> + <IconCircle icon={StreamingLive} style={[a.mb_2xl]} /> + + <TitleText> + <Trans>Give your profile a face</Trans> + </TitleText> + <DescriptionText> + <Trans> + Help people know you're not a bot by uploading a picture or creating + an avatar. + </Trans> + </DescriptionText> + + <OnboardingControls.Portal> + <Button + variant="gradient" + color="gradient_sky" + size="large" + label={_(msg`Continue to next step`)} + onPress={onContinue}> + <ButtonText> + <Trans>Continue</Trans> + </ButtonText> + <ButtonIcon icon={ChevronRight} position="right" /> + </Button> + </OnboardingControls.Portal> + </View> + ) +} |