Chore: evaluate `ForgotPasswordView` (#4106)

This commit is contained in:
Gerzon Z 2022-05-03 12:33:35 -04:00 committed by GitHub
parent d277788dc4
commit d720b5aca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -1,5 +1,3 @@
import { RouteProp } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
import React from 'react';
import { Text } from 'react-native';
@ -10,10 +8,11 @@ import I18n from '../i18n';
import { themes } from '../lib/constants';
import { Services } from '../lib/services';
import { OutsideParamList } from '../stacks/types';
import { TSupportedThemes, withTheme } from '../theme';
import { withTheme } from '../theme';
import { showErrorAlert } from '../utils/info';
import isValidEmail from '../utils/isValidEmail';
import { events, logEvent } from '../utils/log';
import { IBaseScreen } from '../definitions';
import sharedStyles from './Styles';
interface IForgotPasswordViewState {
@ -22,14 +21,10 @@ interface IForgotPasswordViewState {
isFetching: boolean;
}
interface IForgotPasswordViewProps {
navigation: StackNavigationProp<OutsideParamList, 'ForgotPasswordView'>;
route: RouteProp<OutsideParamList, 'ForgotPasswordView'>;
theme: TSupportedThemes;
}
type IForgotPasswordViewProps = IBaseScreen<OutsideParamList, 'ForgotPasswordView'>;
class ForgotPasswordView extends React.Component<IForgotPasswordViewProps, IForgotPasswordViewState> {
static navigationOptions = ({ route }: Pick<IForgotPasswordViewProps, 'route'>) => ({
static navigationOptions = ({ route }: IForgotPasswordViewProps) => ({
title: route.params?.title ?? 'Rocket.Chat'
});