mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 23:33:37 +01:00
17 lines
307 B
JavaScript
17 lines
307 B
JavaScript
|
import { createSlice } from '@reduxjs/toolkit';
|
||
|
|
||
|
const app = createSlice({
|
||
|
name: 'app',
|
||
|
initialState: { locale: 'en' },
|
||
|
reducers: {
|
||
|
updateApp(state, action) {
|
||
|
state = action.payload;
|
||
|
return state;
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export const { updateApp } = app.actions;
|
||
|
|
||
|
export default app.reducer;
|