PromucFlow_constructor/app/client/src/actions/focusHistoryActions.ts

17 lines
483 B
TypeScript
Raw Normal View History

import { FocusState } from "reducers/uiReducers/focusHistoryReducer";
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
export const routeChanged = (pathname: string, hash?: string) => {
return {
type: ReduxActionTypes.ROUTE_CHANGED,
payload: { pathname, hash },
};
};
export const setFocusHistory = (key: string, focusState: FocusState) => {
return {
type: ReduxActionTypes.SET_FOCUS_HISTORY,
payload: { key, focusState },
};
};