umami/redux/actions/app.js
2020-09-12 03:49:31 -07:00

17 lines
310 B
JavaScript

import { createSlice } from '@reduxjs/toolkit';
const app = createSlice({
name: 'app',
initialState: { locale: 'en-US' },
reducers: {
updateApp(state, action) {
state = action.payload;
return state;
},
},
});
export const { updateApp } = app.actions;
export default app.reducer;