mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-29 15:33:36 +01:00
17 lines
301 B
JavaScript
17 lines
301 B
JavaScript
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;
|