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

23 lines
581 B
TypeScript
Raw Normal View History

2019-11-25 09:15:11 +00:00
import { ReduxAction, ReduxActionTypes } from "constants/ReduxActionConstants";
export const changeApi = (id: string): ReduxAction<{ id: string }> => {
return {
type: ReduxActionTypes.API_PANE_CHANGE_API,
payload: { id },
};
};
export const initApiPane = (urlId?: string): ReduxAction<{ id?: string }> => {
return {
type: ReduxActionTypes.INIT_API_PANE,
payload: { id: urlId },
};
};
2020-04-20 08:26:19 +00:00
export const createNewApiAction = (
pageId: string,
): ReduxAction<{ pageId: string }> => ({
type: ReduxActionTypes.CREATE_NEW_API_ACTION,
payload: { pageId },
});