update man hinh user

This commit is contained in:
2022-01-14 12:00:02 +07:00
parent 872f4481d5
commit 6ad59b245c
20 changed files with 1457 additions and 218 deletions

View 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;
}
}