Dev/jchamish/forgotpassword (#4481)

* Implementation of Forgotten Password Reset

* Update webclient/src/hooks/useReduxEffect.tsx

Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
Joseph Chamish 2021-11-19 21:00:05 -05:00 committed by GitHub
parent 7c27e955d5
commit 73c5956ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 447 additions and 7 deletions

View file

@ -0,0 +1,43 @@
/**
* @author Luke Brandon Farrell
* @description Application reducer.
*/
import { AnyAction } from 'redux'
interface InitialState {
type: string | null
payload: any
meta: any
error: boolean
count: number
}
/**
* Initial data.
*/
const initialState: InitialState = {
type: null,
payload: null,
meta: null,
error: false,
count: 0,
}
/**
* Calculates the application state.
*
* @param state
* @param action
* @return {*}
*/
export const actionReducer = (
state = initialState,
action: AnyAction,
): InitialState => {
return {
...state,
...action,
count: state.count + 1,
}
}

View file

@ -0,0 +1 @@
export { actionReducer } from './actionReducer';