diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-09-28 12:08:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 12:08:00 -0700 |
commit | cd3b0e54fbefa6c38ae6ad81198c8d766baee2c5 (patch) | |
tree | 11676f9031d2c5f27e298feec178ce7c2df62262 /src/view/com/modals/Modal.tsx | |
parent | 16763d1d4118292432678ef256226139c0be73c1 (diff) | |
download | voidsky-cd3b0e54fbefa6c38ae6ad81198c8d766baee2c5.tar.zst |
Email verification and change flows (#1560)
* fix 'Reposted by' text overflow * Add email verification flow * Implement change email flow * Add verify email reminder on load * Bump @atproto/api@0.6.20 * Trim the inputs * Accessibility fixes * Fix typo * Fix: include the day in the sharding check * Update auto behaviors * Update yarn.lock * Temporary error message --------- Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/view/com/modals/Modal.tsx')
-rw-r--r-- | src/view/com/modals/Modal.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index d79c77db3..8590a2698 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -30,6 +30,8 @@ import * as ContentLanguagesSettingsModal from './lang-settings/ContentLanguages import * as PostLanguagesSettingsModal from './lang-settings/PostLanguagesSettings' import * as ModerationDetailsModal from './ModerationDetails' import * as BirthDateSettingsModal from './BirthDateSettings' +import * as VerifyEmailModal from './VerifyEmail' +import * as ChangeEmailModal from './ChangeEmail' const DEFAULT_SNAPPOINTS = ['90%'] @@ -136,6 +138,12 @@ export const ModalsContainer = observer(function ModalsContainer() { } else if (activeModal?.name === 'birth-date-settings') { snapPoints = BirthDateSettingsModal.snapPoints element = <BirthDateSettingsModal.Component /> + } else if (activeModal?.name === 'verify-email') { + snapPoints = VerifyEmailModal.snapPoints + element = <VerifyEmailModal.Component {...activeModal} /> + } else if (activeModal?.name === 'change-email') { + snapPoints = ChangeEmailModal.snapPoints + element = <ChangeEmailModal.Component /> } else { return null } |