-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: changePassword, forgotPassword, resetPassword apis #6
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this model should be the ApiResponseModel and the PasswordModal will inherit from it
@@ -0,0 +1,97 @@ | |||
import React, {useCallback, useReducer} from 'react' | |||
import {ScreenContainer} from '../../components/ScreenContainer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
import React, {useCallback, useReducer} from 'react' | ||
import {ScreenContainer} from '../../components/ScreenContainer' | ||
import {Text, StyleSheet, View, TouchableOpacity} from 'react-native' | ||
import PasswordInput from '../../components/InputPassword' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
import {ScreenContainer} from '../../components/ScreenContainer' | ||
import {Text, StyleSheet, View, TouchableOpacity} from 'react-native' | ||
import PasswordInput from '../../components/InputPassword' | ||
import {responsiveHeight} from '../../themes/metrics' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@@ -0,0 +1,68 @@ | |||
import React, {useCallback, useState} from 'react' | |||
import {ScreenContainer} from '../../components/ScreenContainer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
import {useDispatch} from 'react-redux' | ||
import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scroll-view' | ||
import {userActions} from '../../store/reducers' | ||
import InputWithLabel from '../../components/InputWithLabel' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
import Config from 'react-native-config' | ||
// eslint-disable-next-line import/no-cycle | ||
import {postRequest} from '../networking/index' | ||
import PasswordModel from '../../models/user/PasswordModel' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@@ -2,6 +2,7 @@ import {takeLatest, delay, put} from 'redux-saga/effects' | |||
import {appActions, userActions} from '../reducers' | |||
import RouteKey from '../../navigation/RouteKey' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@@ -2,6 +2,7 @@ import {takeLatest, delay, put} from 'redux-saga/effects' | |||
import {appActions, userActions} from '../reducers' | |||
import RouteKey from '../../navigation/RouteKey' | |||
import {Toast} from '../../components' | |||
import {changePassword, forgotPassword, resetPassword} from '../../services/api/api' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shorten import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seem like the content of this file is duplicated with ChangePasswordScreen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the different screen with the ChangePasswordScreen. Reset password screen require email field
No description provided.