PromucFlow_constructor/app/client/src/actions/widgetSidebarActions.tsx
Ankita Kinger c1e48f7486
feat: Refactor code for SAML integration (#12700)
* 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
2022-04-12 16:20:01 +05:30

39 lines
827 B
TypeScript

import {
ReduxActionTypes,
ReduxActionErrorTypes,
} from "@appsmith/constants/ReduxActionConstants";
import { WidgetCardProps } from "widgets/BaseWidget";
export const fetchWidgetCards = () => {
return {
type: ReduxActionTypes.FETCH_WIDGET_CARDS,
};
};
export const errorFetchingWidgetCards = (error: any) => {
return {
type: ReduxActionErrorTypes.FETCH_WIDGET_CARDS_ERROR,
error,
};
};
export const successFetchingWidgetCards = (cards: {
[id: string]: WidgetCardProps[];
}) => {
return {
type: ReduxActionTypes.FETCH_WIDGET_CARDS_SUCCESS,
cards,
};
};
export const forceOpenWidgetPanel = (flag: boolean) => ({
type: ReduxActionTypes.SET_FORCE_WIDGET_PANEL_OPEN,
payload: flag,
});
export default {
fetchWidgetCards,
errorFetchingWidgetCards,
successFetchingWidgetCards,
};