diff --git a/src/view/com/modals/ChangeEmail.tsx b/src/view/com/modals/ChangeEmail.tsx index c92dabdc..01257055 100644 --- a/src/view/com/modals/ChangeEmail.tsx +++ b/src/view/com/modals/ChangeEmail.tsx @@ -1,11 +1,5 @@ import React, {useState} from 'react' -import { - ActivityIndicator, - KeyboardAvoidingView, - SafeAreaView, - StyleSheet, - View, -} from 'react-native' +import {ActivityIndicator, SafeAreaView, StyleSheet, View} from 'react-native' import {ScrollView, TextInput} from './util' import {observer} from 'mobx-react-lite' import {Text} from '../util/text/Text' @@ -101,142 +95,134 @@ export const Component = observer(function Component({}: {}) { } return ( - - - - - - {stage === Stages.InputEmail ? 'Change Your Email' : ''} - {stage === Stages.ConfirmCode ? 'Security Step Required' : ''} - {stage === Stages.Done ? 'Email Updated' : ''} - - - - - {stage === Stages.InputEmail ? ( - <>Enter your new email address below. - ) : stage === Stages.ConfirmCode ? ( - <> - An email has been sent to your previous address,{' '} - {store.session.currentSession?.email || ''}. It includes a - confirmation code which you can enter below. - - ) : ( - <> - Your email has been updated but not verified. As a next step, - please verify your new email. - - )} + + + + + {stage === Stages.InputEmail ? 'Change Your Email' : ''} + {stage === Stages.ConfirmCode ? 'Security Step Required' : ''} + {stage === Stages.Done ? 'Email Updated' : ''} + - {stage === Stages.InputEmail && ( - - )} - {stage === Stages.ConfirmCode && ( - + + {stage === Stages.InputEmail ? ( + <>Enter your new email address below. + ) : stage === Stages.ConfirmCode ? ( + <> + An email has been sent to your previous address,{' '} + {store.session.currentSession?.email || ''}. It includes a + confirmation code which you can enter below. + + ) : ( + <> + Your email has been updated but not verified. As a next step, + please verify your new email. + )} + - {error ? ( - - ) : undefined} + {stage === Stages.InputEmail && ( + + )} + {stage === Stages.ConfirmCode && ( + + )} - - {isProcessing ? ( - - - - ) : ( - - {stage === Stages.InputEmail && ( -