Add behavior pop up

This commit is contained in:
2022-03-26 13:39:36 +08:00
parent ffdb796e8f
commit ce5e6a34d8
5 changed files with 51 additions and 2 deletions
@@ -0,0 +1,6 @@
@import "../Theme/Theme.scss";
div.behavior-popup {
width: 100%;
height: 100%;
}
@@ -0,0 +1,34 @@
import { Component, ReactNode } from "react";
import { Popup } from "@Context/Popups";
import { Theme } from "@Component/Theme/Theme";
import { Localization } from "@Component/Localization/Localization";
import "./BehaviorPopup.scss";
interface IBehaviorPopupProps {
}
class BehaviorPopup extends Popup<IBehaviorPopupProps> {
public minWidth: number = 400;
public minHeight: number = 300;
public width: number = 600;
public height: number = 450;
public onRenderHeader(): ReactNode {
return <Localization i18nKey="Popup.Add.Behavior.Title"/>
}
public render(): ReactNode {
return <BehaviorPopupComponent {...this.props}/>
}
}
class BehaviorPopupComponent extends Component<IBehaviorPopupProps> {
public render(): ReactNode {
return <Theme className="behavior-popup"></Theme>
}
}
export { BehaviorPopup };