PromucFlow_constructor/app/client/src/actions/focusHistoryActions.ts
Ankita Kinger 38d321242f
chore: Splitting files to support groups on members page in EE (#18085)
* splitted files to support groups on members page in EE

* updated an import

* minor change
2022-11-03 22:09:51 +05:30

17 lines
483 B
TypeScript

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 },
};
};