code from amapei

This commit is contained in:
cagette@ct8
2020-09-26 18:25:18 +00:00
parent 42fe367911
commit 72b4699871
1966 changed files with 220437 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
package react;
import react.ReactComponent;
import react.ReactMacro.jsx;
import Common;
/**
* A Error Div
*/
class Error extends react.ReactComponentOfProps<{error:String}>
{
public function new(props:Dynamic)
{
super(props);
}
override public function render(){
if (props.error == null) return null;
return jsx('<div className="alert alert-danger">
<span className="glyphicon glyphicon-exclamation-sign"></span> ${props.error}
</div>
');
}
}