feat: changePassword, forgotPassword, resetPassword apis#6
Open
anhle10051996 wants to merge 4 commits intomainfrom
Open
feat: changePassword, forgotPassword, resetPassword apis#6anhle10051996 wants to merge 4 commits intomainfrom
anhle10051996 wants to merge 4 commits intomainfrom
Conversation
baonguyenhsts
suggested changes
Aug 9, 2023
Contributor
There was a problem hiding this comment.
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' | |||
| import React, {useCallback, useReducer} from 'react' | ||
| import {ScreenContainer} from '../../components/ScreenContainer' | ||
| import {Text, StyleSheet, View, TouchableOpacity} from 'react-native' | ||
| import PasswordInput from '../../components/InputPassword' |
| import {ScreenContainer} from '../../components/ScreenContainer' | ||
| import {Text, StyleSheet, View, TouchableOpacity} from 'react-native' | ||
| import PasswordInput from '../../components/InputPassword' | ||
| import {responsiveHeight} from '../../themes/metrics' |
| @@ -0,0 +1,68 @@ | |||
| import React, {useCallback, useState} from 'react' | |||
| import {ScreenContainer} from '../../components/ScreenContainer' | |||
| import {useDispatch} from 'react-redux' | ||
| import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scroll-view' | ||
| import {userActions} from '../../store/reducers' | ||
| import InputWithLabel from '../../components/InputWithLabel' |
| import Config from 'react-native-config' | ||
| // eslint-disable-next-line import/no-cycle | ||
| import {postRequest} from '../networking/index' | ||
| import PasswordModel from '../../models/user/PasswordModel' |
| @@ -2,6 +2,7 @@ import {takeLatest, delay, put} from 'redux-saga/effects' | |||
| import {appActions, userActions} from '../reducers' | |||
| import RouteKey from '../../navigation/RouteKey' | |||
| import {appActions, userActions} from '../reducers' | ||
| import RouteKey from '../../navigation/RouteKey' | ||
| import {Toast} from '../../components' | ||
| import {changePassword, forgotPassword, resetPassword} from '../../services/api/api' |
Contributor
There was a problem hiding this comment.
Seem like the content of this file is duplicated with ChangePasswordScreen
Contributor
Author
There was a problem hiding this comment.
it's the different screen with the ChangePasswordScreen. Reset password screen require email field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.