PromucFlow_constructor/app/client/src/widgets/AlertWidget.tsx
Nikhil Nandagopal 5f6aeb55f8 added new control types
removed alert from widget list
added property config values
added input validator
2019-09-19 16:59:24 +05:30

24 lines
646 B
TypeScript

import React, { Component } from "react";
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
import { WidgetType } from "../constants/WidgetConstants";
import { ActionPayload } from "../constants/ActionConstants";
class AlertWidget extends Component {
getPageView() {
return <div />;
}
}
export type AlertType = "DIALOG" | "NOTIFICATION";
export type MessageIntent = "SUCCESS" | "ERROR" | "INFO" | "WARNING";
export interface AlertWidgetProps extends WidgetProps {
alertType: AlertType;
intent: MessageIntent;
header: string;
message: string;
onPrimaryClick: ActionPayload[];
}
export default AlertWidget;