PromucFlow_constructor/app/client/src/actions/themeActions.ts
albinAppsmith 31cdfe0fe5
feat: Appsmith design system changes (#8125)
Introducing a much improved design system with new components in the Appsmith Design System.
2021-10-04 21:04:37 +05:30

16 lines
435 B
TypeScript

import { ReduxActionTypes } from "constants/ReduxActionConstants";
import { ThemeMode } from "../selectors/themeSelectors";
export const setThemeMode = (mode: ThemeMode) => ({
type: ReduxActionTypes.SET_THEME,
payload: mode,
});
export const setHeaderMeta = (
hideHeaderShadow: boolean,
showHeaderSeparator: boolean,
) => ({
type: ReduxActionTypes.SET_HEADER_META,
payload: { hideHeaderShadow, showHeaderSeparator },
});