* Implemented code splitting of some files for SAML integration * Implemented code splitting of some more files for SAML integration * updated redirect url component * fixed an import statement * fixed a unit test * updated restart banner tooltip logic * updated an import statement
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
import {
|
|
ReduxActionTypes,
|
|
ReduxAction,
|
|
} from "@appsmith/constants/ReduxActionConstants";
|
|
import { takeLatest } from "redux-saga/effects";
|
|
import localStorage from "utils/localStorage";
|
|
import { ThemeMode } from "selectors/themeSelectors";
|
|
|
|
export function* setThemeSaga(actionPayload: ReduxAction<ThemeMode>) {
|
|
yield localStorage.setItem("THEME", actionPayload.payload);
|
|
}
|
|
|
|
export default function* themeSagas() {
|
|
yield takeLatest(ReduxActionTypes.SET_THEME, setThemeSaga);
|
|
}
|