From 07b96f99fc319660ee94c3a055eebc60183391f8 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 2 May 2025 15:37:31 -0500 Subject: [PATCH] Fix X button --- src/components/Dialog/index.web.tsx | 8 ++++- .../screens/VerificationReminder.tsx | 36 +++++++++++++------ 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 12bd8819b1..c43e9c5c04 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -195,7 +195,13 @@ export function Inner({ onDismiss={close} style={{display: 'flex', flexDirection: 'column'}}> {header} - + {children} diff --git a/src/components/dialogs/EmailDialog/screens/VerificationReminder.tsx b/src/components/dialogs/EmailDialog/screens/VerificationReminder.tsx index 50bcb2ee08..267b784b05 100644 --- a/src/components/dialogs/EmailDialog/screens/VerificationReminder.tsx +++ b/src/components/dialogs/EmailDialog/screens/VerificationReminder.tsx @@ -2,7 +2,7 @@ import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf' +import {atoms as a, platform, tokens, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {useDialogContext} from '#/components/Dialog' import { @@ -19,24 +19,40 @@ export function VerificationReminder({ }: ScreenProps) { const t = useTheme() const {_} = useLingui() - const {gtPhone} = useBreakpoints() + const {gtPhone, gtMobile} = useBreakpoints() const control = useDialogContext() + const dialogPadding = gtMobile ? a.p_2xl.padding : a.p_xl.padding + return ( - - + + + + + + Please verify your email