update man hinh user
This commit is contained in:
15
app/src/reducers/role/index.js
Normal file
15
app/src/reducers/role/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import {ROLE} from '../../actions/role';
|
||||
|
||||
const initialState = {
|
||||
role: null
|
||||
};
|
||||
export default function role(state = initialState, action) {
|
||||
switch(action.type){
|
||||
case ROLE:
|
||||
return{
|
||||
role: action.payload.role
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user