Update syntax to convention
parent
4454fabb27
commit
7c454286de
|
@ -1,15 +1,13 @@
|
||||||
function getInitialState() {
|
const getInitialState = () => ({
|
||||||
return {
|
|
||||||
links: null,
|
links: null,
|
||||||
me: null,
|
me: null,
|
||||||
isMeLoading: false,
|
isMeLoading: false,
|
||||||
isAuthLoading: false,
|
isAuthLoading: false,
|
||||||
}
|
})
|
||||||
}
|
|
||||||
|
|
||||||
const initialState = getInitialState()
|
const initialState = getInitialState()
|
||||||
|
|
||||||
export default function auth(state = initialState, action) {
|
const auth = (state = initialState, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case 'AUTH_REQUESTED': {
|
case 'AUTH_REQUESTED': {
|
||||||
return {...state, isAuthLoading: true}
|
return {...state, isAuthLoading: true}
|
||||||
|
@ -34,3 +32,5 @@ export default function auth(state = initialState, action) {
|
||||||
|
|
||||||
return state
|
return state
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default auth
|
||||||
|
|
Loading…
Reference in New Issue