2022-10-17 15:16:38 +00:00
|
|
|
import { FocusState } from "reducers/uiReducers/focusHistoryReducer";
|
2022-11-03 16:39:51 +00:00
|
|
|
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
2022-10-17 15:16:38 +00:00
|
|
|
|
|
|
|
|
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 },
|
|
|
|
|
};
|
|
|
|
|
};
|