CRUD Info modal which pops up on successful CRUD generation, will now have dynamic data for each CRUD template. Modal success `message` and `Image` to explain the working of the CRUD template is fetched from the backend. Co-authored-by: Abhijeet <ABHI.NAGARNAIK@GMAIL.COM>
17 lines
390 B
TypeScript
17 lines
390 B
TypeScript
import { ReduxActionTypes } from "constants/ReduxActionConstants";
|
|
|
|
export type SetCrudInfoModalOpenPayload = {
|
|
open: boolean;
|
|
generateCRUDSuccessInfo?: {
|
|
successImageUrl: string;
|
|
successMessage: string;
|
|
};
|
|
};
|
|
|
|
export const setCrudInfoModalData = (payload: SetCrudInfoModalOpenPayload) => {
|
|
return {
|
|
type: ReduxActionTypes.SET_CRUD_INFO_MODAL_OPEN,
|
|
payload,
|
|
};
|
|
};
|