From ed63f69a2dbba551292afc3a055151e92be72ad9 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Tue, 3 May 2022 11:06:02 -0400 Subject: [PATCH] chore: evaluate `SendEmailConfirmationView` (#4093) --- app/views/SendEmailConfirmationView.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/views/SendEmailConfirmationView.tsx b/app/views/SendEmailConfirmationView.tsx index c33a1c5b5..7ab89dd99 100644 --- a/app/views/SendEmailConfirmationView.tsx +++ b/app/views/SendEmailConfirmationView.tsx @@ -1,6 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { StackNavigationProp } from '@react-navigation/stack'; -import { RouteProp } from '@react-navigation/core'; import { OutsideParamList } from '../stacks/types'; import TextInput from '../containers/TextInput'; @@ -12,18 +10,15 @@ import { useTheme } from '../theme'; import FormContainer, { FormContainerInner } from '../containers/FormContainer'; import log, { events, logEvent } from '../utils/log'; import sharedStyles from './Styles'; +import { IBaseScreen } from '../definitions'; import { Services } from '../lib/services'; -interface ISendEmailConfirmationViewProps { - navigation: StackNavigationProp; - route: RouteProp; -} +type ISendEmailConfirmationViewProps = IBaseScreen; -const SendEmailConfirmationView = ({ navigation, route }: ISendEmailConfirmationViewProps): JSX.Element => { +const SendEmailConfirmationView = ({ navigation, route }: ISendEmailConfirmationViewProps): React.ReactElement => { const [email, setEmail] = useState(''); const [invalidEmail, setInvalidEmail] = useState(true); const [isFetching, setIsFetching] = useState(false); - const { theme } = useTheme(); const validate = (val: string) => {