1234567891011121314151617181920212223242526272829 |
- export const toggleDisplayMode: ReducerFuncType = (state, { payload }) => ({
- ...state,
- displayMode: payload,
- });
- export const setNavbarState: ReducerFuncType = (state, { payload }) => ({
- ...state,
- navbarState: payload,
- });
- export const setSidebarState: ReducerFuncType = (state, { payload }) => ({
- ...state,
- sidebarState: payload,
- });
- export const setTool: ReducerFuncType = (state, { payload }) => ({
- ...state,
- toolState: payload,
- });
- export const setInfo: ReducerFuncType = (state, { payload }) => ({
- ...state,
- info: payload,
- });
- export const setLoading: ReducerFuncType = (state, { payload }) => ({
- ...state,
- isLoading: payload,
- });
|