mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
Added network page to settings which shows information about the node network and sesh token
19 lines
549 B
TypeScript
19 lines
549 B
TypeScript
import { PayloadAction, createSlice } from '@reduxjs/toolkit';
|
|
import { ThemeStateType } from '../../../themes/constants/colors';
|
|
|
|
// TODO Move primary color into this slice
|
|
export const initialThemeState: ThemeStateType = 'classic-dark' as ThemeStateType;
|
|
|
|
const themeSlice = createSlice({
|
|
name: 'theme',
|
|
initialState: initialThemeState,
|
|
reducers: {
|
|
updateTheme(_, action: PayloadAction<ThemeStateType>) {
|
|
return action.payload;
|
|
},
|
|
},
|
|
});
|
|
|
|
export const { updateTheme } = themeSlice.actions;
|
|
export default themeSlice.reducer;
|