Created
June 18, 2022 05:06
-
-
Save harsh317/32d52a9060ed1b7638b44bffb359c8a7 to your computer and use it in GitHub Desktop.
these will be the initial state of our Auth.js reducer
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
import { SET_UserDetails } from "../actions/Auth"; | |
const initialState = { | |
userInfo: null, | |
}; | |
export default (state = initialState, action) => { | |
switch (action.type) { | |
default: | |
return state; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment