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