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
This commit is contained in:
Samuel Newman
2025-01-23 22:33:28 +00:00
committed by GitHub
parent 084d11c63a
commit f1d120d416
11 changed files with 322 additions and 41 deletions
+21 -24
View File
@@ -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>
)}