Skip to content

Commit c772508

Browse files
committed
Rename userReducer
1 parent ab8eda8 commit c772508

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/reducers/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { combineReducers } from 'redux';
2-
import userReducer from './userReducer';
2+
import user from './user';
33

44
const reducers = combineReducers({
5-
user: userReducer
5+
user
66
});
77

88
export default reducers;

src/reducers/userReducer.js renamed to src/reducers/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SET_USER, REMOVE_USER } from '../constants/actionTypes';
22

33
const INITIAL_STATE = null;
44

5-
const userReducer = (state = INITIAL_STATE, action) => {
5+
const user = (state = INITIAL_STATE, action) => {
66
switch (action.type) {
77
case SET_USER:
88
return action.payload;
@@ -13,4 +13,4 @@ const userReducer = (state = INITIAL_STATE, action) => {
1313
}
1414
};
1515

16-
export default userReducer;
16+
export default user;

0 commit comments

Comments
 (0)