mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-15 03:08:27 +00:00
18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
function init(React){
|
|
var WsIndicator = React.createClass({
|
|
getInitialState:function(){
|
|
return {
|
|
isValid: false
|
|
}
|
|
},
|
|
render:function(){
|
|
return (
|
|
<img className="logo_bottom anim_rotation" src="https://t.alipayobjects.com/images/rmsweb/T1P_dfXa8oXXXXXXXX.png" width="50" height="50" style={{display: this.state.isValid ?"block" : "none" }} />
|
|
);
|
|
}
|
|
});
|
|
|
|
return WsIndicator;
|
|
}
|
|
|
|
module.exports.init = init; |