Introducing a much improved design system with new components in the Appsmith Design System.
16 lines
435 B
TypeScript
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 },
|
|
});
|