commit
4047a7ec23
378 changed files with 29334 additions and 0 deletions
16
redux/actions/user.js
Normal file
16
redux/actions/user.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { createSlice } from '@reduxjs/toolkit';
|
||||
|
||||
const user = createSlice({
|
||||
name: 'user',
|
||||
initialState: null,
|
||||
reducers: {
|
||||
updateUser(state, action) {
|
||||
state = action.payload;
|
||||
return state;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { updateUser } = user.actions;
|
||||
|
||||
export default user.reducer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue