1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-23 18:04:47 +01:00
umami/redux/actions/user.js

17 lines
301 B
JavaScript
Raw Normal View History

2020-08-05 07:45:05 +02:00
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;