Files
Will GandGitHub 73079add66 feat: added session network page
Added network page to settings which shows information about the node network and sesh token
2025-05-13 14:23:03 +10:00

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;