You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
export enum ActionType {
|
|
SET_THEME = 'SET_THEME',
|
|
}
|
|
|
|
type actionFetch = {
|
|
type: ActionType.SET_THEME;
|
|
payload: String;
|
|
}
|
|
|
|
export type Action = actionFetch;
|
|
|
|
export const setTheme = (theme) => {
|
|
return {
|
|
type: ActionType.SET_THEME,
|
|
payload: theme,
|
|
};
|
|
} |