add timezone to UI slize
This commit is contained in:
1 parent
f443c6c099
commit
40076e1772
1 file changed
+11
-2
@@ -14,6 +14,7 @@ const initialState = {
|
|||||||
},
|
},
|
||||||
mode: "light",
|
mode: "light",
|
||||||
greeting: { index: 0, lastUpdate: null },
|
greeting: { index: 0, lastUpdate: null },
|
||||||
|
timezone: "America/Toronto",
|
||||||
};
|
};
|
||||||
|
|
||||||
const uiSlice = createSlice({
|
const uiSlice = createSlice({
|
||||||
@@ -36,9 +37,17 @@ const uiSlice = createSlice({
|
|||||||
state.greeting.index = action.payload.index;
|
state.greeting.index = action.payload.index;
|
||||||
state.greeting.lastUpdate = action.payload.lastUpdate;
|
state.greeting.lastUpdate = action.payload.lastUpdate;
|
||||||
},
|
},
|
||||||
|
setTimezone(state, action) {
|
||||||
|
state.timezone = action.payload.timezone;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default uiSlice.reducer;
|
export default uiSlice.reducer;
|
||||||
export const { setRowsPerPage, toggleSidebar, setMode, setGreeting } =
|
export const {
|
||||||
uiSlice.actions;
|
setRowsPerPage,
|
||||||
|
toggleSidebar,
|
||||||
|
setMode,
|
||||||
|
setGreeting,
|
||||||
|
setTimezone,
|
||||||
|
} = uiSlice.actions;
|
||||||
Reference in new issue
Block a user