umami/redux/actions/app.js

17 lines
310 B
JavaScript
Raw Normal View History

2020-09-07 10:22:16 +02:00
import { createSlice } from '@reduxjs/toolkit';
const app = createSlice({
name: 'app',
2020-09-12 12:49:31 +02:00
initialState: { locale: 'en-US' },
2020-09-07 10:22:16 +02:00
reducers: {
updateApp(state, action) {
state = action.payload;
return state;
},
},
});
export const { updateApp } = app.actions;
export default app.reducer;