1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 03:29:37 +02:00
flame/client/src/store/actions/theme.ts

33 lines
644 B
TypeScript
Raw Normal View History

import { ActionType } from '../action-types';
import { Theme, ThemeColors } from '../../interfaces';
export interface SetThemeAction {
type: ActionType.setTheme;
payload: ThemeColors;
}
export interface FetchThemesAction {
type: ActionType.fetchThemes;
payload: Theme[];
}
2022-03-24 16:07:14 +01:00
export interface AddThemeAction {
type: ActionType.addTheme;
payload: Theme;
}
export interface DeleteThemeAction {
type: ActionType.deleteTheme;
payload: Theme[];
}
export interface UpdateThemeAction {
type: ActionType.updateTheme;
payload: Theme[];
}
export interface EditThemeAction {
type: ActionType.editTheme;
payload: Theme | null;
}