Compare commits

...

13 Commits

Author SHA1 Message Date
Hailey d13195d756 merge main 2024-10-10 15:16:37 -07:00
Hailey 5fcc0842fc progress 2024-10-10 13:55:51 -07:00
Hailey c702283c01 start 2024-10-10 12:41:45 -07:00
Hailey 445d43f1d9 Merge branch 'hailey/verify-email-dialog-alf' of github.com:bluesky-social/social-app into hailey/verify-email-dialog-alf 2024-10-10 12:34:05 -07:00
Hailey d39bd00018 copy nit 2024-10-10 12:33:49 -07:00
Hailey 950b49ecaa Discard changes to src/view/com/modals/VerifyEmail.tsx 2024-10-10 12:30:10 -07:00
Hailey 1783d696ef refresh 2024-10-10 12:28:53 -07:00
Hailey 5644a0a4f1 tweaks 2024-10-10 12:13:23 -07:00
Hailey 297f98e364 Merge remote-tracking branch 'origin/main' into hailey/verify-email-dialog-alf 2024-10-10 11:56:44 -07:00
Hailey 63b823f4c7 replace with new dialog 2024-10-09 14:11:48 -07:00
Hailey cd903b2691 change email link 2024-10-09 14:06:39 -07:00
Hailey 79acfa1aa3 layout buttons on web 2024-10-09 13:59:51 -07:00
Hailey 95bea8bf6a alf email confirmation dialog 2024-10-09 13:53:14 -07:00
@@ -0,0 +1,55 @@
import React from 'react'
import {View} from 'react-native'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useAgent, useSession} from '#/state/session'
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
import * as Dialog from '#/components/Dialog'
import {Text} from '#/components/Typography'
export function ChangeEmailDialog({
control,
}: {
control: Dialog.DialogControlProps
}) {
return (
<Dialog.Outer control={control}>
<Dialog.Handle />
<Inner control={control} />
</Dialog.Outer>
)
}
function Inner({control}: {control: Dialog.DialogControlProps}) {
const {_} = useLingui()
const {currentAccount} = useSession()
const agent = useAgent()
const t = useTheme()
const {gtMobile} = useBreakpoints()
const [currentStep, setCurrentStep] = React.useState<'StepOne' | 'StepTwo'>(
'StepOne',
)
const uiStrings = {
StepOne: {
title: _(msg`Change Email`),
message: _(msg`Enter your new email address below.`),
},
StepTwo: {
title: _(msg),
message: '',
},
}
return (
<Dialog.ScrollableInner label={_(msg`Change email dialog`)}>
<View style={[a.gap_xl]}>
<View style={[a.gap_sm]}>
<Text style={[a.font_heavy, a.text_2xl]}>{_(msg`Change email`)}</Text>
</View>
</View>
</Dialog.ScrollableInner>
)
}