-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reduced Onboarding] Add new step, new state to reducer (#3931)
* Add new step, new state to reducer * Don't set default feeds
- Loading branch information
1 parent
08979f3
commit 80ce6f9
Showing
4 changed files
with
132 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters