chore: evaluate `SendEmailConfirmationView` (#4093)

This commit is contained in:
Gerzon Z 2022-05-03 11:06:02 -04:00 committed by GitHub
parent edfeeb80d3
commit ed63f69a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -1,6 +1,4 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { StackNavigationProp } from '@react-navigation/stack';
import { RouteProp } from '@react-navigation/core';
import { OutsideParamList } from '../stacks/types'; import { OutsideParamList } from '../stacks/types';
import TextInput from '../containers/TextInput'; import TextInput from '../containers/TextInput';
@ -12,18 +10,15 @@ import { useTheme } from '../theme';
import FormContainer, { FormContainerInner } from '../containers/FormContainer'; import FormContainer, { FormContainerInner } from '../containers/FormContainer';
import log, { events, logEvent } from '../utils/log'; import log, { events, logEvent } from '../utils/log';
import sharedStyles from './Styles'; import sharedStyles from './Styles';
import { IBaseScreen } from '../definitions';
import { Services } from '../lib/services'; import { Services } from '../lib/services';
interface ISendEmailConfirmationViewProps { type ISendEmailConfirmationViewProps = IBaseScreen<OutsideParamList, 'SendEmailConfirmationView'>;
navigation: StackNavigationProp<OutsideParamList, 'SendEmailConfirmationView'>;
route: RouteProp<OutsideParamList, 'SendEmailConfirmationView'>;
}
const SendEmailConfirmationView = ({ navigation, route }: ISendEmailConfirmationViewProps): JSX.Element => { const SendEmailConfirmationView = ({ navigation, route }: ISendEmailConfirmationViewProps): React.ReactElement => {
const [email, setEmail] = useState(''); const [email, setEmail] = useState('');
const [invalidEmail, setInvalidEmail] = useState(true); const [invalidEmail, setInvalidEmail] = useState(true);
const [isFetching, setIsFetching] = useState(false); const [isFetching, setIsFetching] = useState(false);
const { theme } = useTheme(); const { theme } = useTheme();
const validate = (val: string) => { const validate = (val: string) => {