You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
489 B
26 lines
489 B
package react;
|
|
import react.ReactComponent;
|
|
import react.ReactMacro.jsx;
|
|
import Common;
|
|
|
|
/**
|
|
* A message Div
|
|
*/
|
|
class Message extends react.ReactComponentOfProps<{message:String}>
|
|
{
|
|
|
|
public function new(props:Dynamic)
|
|
{
|
|
super(props);
|
|
}
|
|
|
|
override public function render(){
|
|
|
|
if (props.message == null) return null;
|
|
|
|
return jsx('<div className="alert alert-warning">
|
|
<span className="glyphicon glyphicon glyphicon-info-sign"></span> ${props.message}
|
|
</div>
|
|
');
|
|
}
|
|
}
|