Remove tentative EnterCode step

This commit is contained in:
Eric Bailey
2025-04-25 15:13:11 -05:00
parent ecab279de3
commit 4a7c4fd215
3 changed files with 4 additions and 17 deletions
@@ -22,9 +22,7 @@ import {CheckThick_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Ch
import {Loader} from '#/components/Loader' import {Loader} from '#/components/Loader'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
export function Update(_props: { export function Update(_props: {config: Exclude<Screen, {id: 'Verify'}>}) {
config: Exclude<Screen, {id: 'Verify' | 'EnterCode'}>
}) {
const t = useTheme() const t = useTheme()
const {_} = useLingui() const {_} = useLingui()
const {currentAccount} = useSession() const {currentAccount} = useSession()
@@ -15,13 +15,11 @@ import {type Screen} from '#/components/dialogs/EmailDialog/types'
import {Divider} from '#/components/Divider' import {Divider} from '#/components/Divider'
import {CheckThick_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import {CheckThick_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
import {Envelope_Stroke2_Corner0_Rounded as Envelope} from '#/components/icons/Envelope' import {Envelope_Stroke2_Corner0_Rounded as Envelope} from '#/components/icons/Envelope'
import {createStaticClick,InlineLinkText} from '#/components/Link' import {createStaticClick, InlineLinkText} from '#/components/Link'
import {Loader} from '#/components/Loader' import {Loader} from '#/components/Loader'
import {Span,Text} from '#/components/Typography' import {Span, Text} from '#/components/Typography'
export function Verify(_props: { export function Verify(_props: {config: Exclude<Screen, {id: 'Update'}>}) {
config: Exclude<Screen, {id: 'Update' | 'EnterCode'}>
}) {
const t = useTheme() const t = useTheme()
const {_} = useLingui() const {_} = useLingui()
const {currentAccount} = useSession() const {currentAccount} = useSession()
@@ -12,14 +12,6 @@ export type Screen =
| { | {
id: ScreenID.Update id: ScreenID.Update
} }
| {
id: ScreenID.EnterCode
/**
* - email was sent earlier
* - email was _just_ sent
*/
instructions: ReactNode[]
}
| { | {
id: ScreenID.Verify id: ScreenID.Verify
/** /**
@@ -33,6 +25,5 @@ export type Screen =
export enum ScreenID { export enum ScreenID {
Update = 'Update', // normal, instructs to click link first Update = 'Update', // normal, instructs to click link first
EnterCode = 'EnterCode', // if user elects to enter a code
Verify = 'Verify', // as a separate step, instructs to click link first Verify = 'Verify', // as a separate step, instructs to click link first
} }