1
0
mirror of https://github.com/kremalicious/umami.git synced 2025-01-03 02:25:07 +01:00
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;