diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-01-23 22:33:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-23 22:33:28 +0000 |
commit | f1d120d416bc262b5fd63e3407f9e0b09b13cd74 (patch) | |
tree | 5191aec11ef4367e7be299e3711cad2dcad29697 /src/screens/SignupQueued.tsx | |
parent | 084d11c63aebd0afc516931a11bddac9b24b3b18 (diff) | |
download | voidsky-f1d120d416bc262b5fd63e3407f9e0b09b13cd74.tar.zst |
Takendown state + in-app takedown appeals (#7566)
* takendown screen * add form, move button inline * expect type error * display error * disable submit if too long * move around all the ctas * typos, rm layoutanimation, fix link * use REASONAPPEAL
Diffstat (limited to 'src/screens/SignupQueued.tsx')
-rw-r--r-- | src/screens/SignupQueued.tsx | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/src/screens/SignupQueued.tsx b/src/screens/SignupQueued.tsx index f1c36a69c..61c387875 100644 --- a/src/screens/SignupQueued.tsx +++ b/src/screens/SignupQueued.tsx @@ -85,6 +85,21 @@ export function SignupQueued() { </Button> ) + const logoutBtn = ( + <Button + variant="ghost" + size="large" + color="primary" + label={_(msg`Log out`)} + onPress={() => logoutCurrentAccount('SignupQueued')}> + <ButtonText> + <Trans>Log out</Trans> + </ButtonText> + </Button> + ) + + const webLayout = isWeb && gtMobile + return ( <Modal visible @@ -108,7 +123,7 @@ export function SignupQueued() { <Logo width={120} /> </View> - <Text style={[a.text_4xl, a.font_bold, a.pb_sm]}> + <Text style={[a.text_4xl, a.font_heavy, a.pb_sm]}> <Trans>You're in line</Trans> </Text> <P style={[t.atoms.text_contrast_medium]}> @@ -153,7 +168,7 @@ export function SignupQueued() { </P> </View> - {isWeb && gtMobile && ( + {webLayout && ( <View style={[ a.w_full, @@ -162,15 +177,7 @@ export function SignupQueued() { a.pt_5xl, {paddingBottom: 200}, ]}> - <Button - variant="ghost" - size="large" - label={_(msg`Log out`)} - onPress={() => logoutCurrentAccount('SignupQueued')}> - <ButtonText style={[{color: t.palette.primary_500}]}> - <Trans>Log out</Trans> - </ButtonText> - </Button> + {logoutBtn} {checkBtn} </View> )} @@ -178,27 +185,17 @@ export function SignupQueued() { </View> </ScrollView> - {(!isWeb || !gtMobile) && ( + {!webLayout && ( <View style={[ a.align_center, t.atoms.bg, gtMobile ? a.px_5xl : a.px_xl, - { - paddingBottom: Math.max(insets.bottom, a.pb_5xl.paddingBottom), - }, + {paddingBottom: Math.max(insets.bottom, a.pb_5xl.paddingBottom)}, ]}> <View style={[a.w_full, a.gap_sm, {maxWidth: COL_WIDTH}]}> {checkBtn} - <Button - variant="ghost" - size="large" - label={_(msg`Log out`)} - onPress={() => logoutCurrentAccount('SignupQueued')}> - <ButtonText style={[{color: t.palette.primary_500}]}> - <Trans>Log out</Trans> - </ButtonText> - </Button> + {logoutBtn} </View> </View> )} |