formatting
This commit is contained in:
@@ -17,7 +17,7 @@ const INITIAL_STATE = {
|
|||||||
last: '',
|
last: '',
|
||||||
companyName: '',
|
companyName: '',
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false
|
||||||
};
|
};
|
||||||
|
|
||||||
export default (state = INITIAL_STATE, action) => {
|
export default (state = INITIAL_STATE, action) => {
|
||||||
@@ -37,7 +37,7 @@ export default (state = INITIAL_STATE, action) => {
|
|||||||
password: '',
|
password: '',
|
||||||
authToken: action.payload.authToken,
|
authToken: action.payload.authToken,
|
||||||
user: action.payload.user,
|
user: action.payload.user,
|
||||||
loading: false,
|
loading: false
|
||||||
};
|
};
|
||||||
|
|
||||||
case LOGIN_USER_FAIL:
|
case LOGIN_USER_FAIL:
|
||||||
@@ -45,7 +45,7 @@ export default (state = INITIAL_STATE, action) => {
|
|||||||
...state,
|
...state,
|
||||||
error: 'Authentication failed!',
|
error: 'Authentication failed!',
|
||||||
password: '',
|
password: '',
|
||||||
loading: false,
|
loading: false
|
||||||
};
|
};
|
||||||
|
|
||||||
case LOGOUT:
|
case LOGOUT:
|
||||||
@@ -55,4 +55,3 @@ export default (state = INITIAL_STATE, action) => {
|
|||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ import MeshifyReducer from './meshifyReducer';
|
|||||||
|
|
||||||
export default combineReducers({
|
export default combineReducers({
|
||||||
auth: AuthReducer,
|
auth: AuthReducer,
|
||||||
meshify: MeshifyReducer,
|
meshify: MeshifyReducer
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user