mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-20 17:14:20 +00:00
18 lines
488 B
JavaScript
18 lines
488 B
JavaScript
function init(React){
|
|
var WsIndicator = React.createClass({displayName: "WsIndicator",
|
|
getInitialState:function(){
|
|
return {
|
|
isValid: false
|
|
}
|
|
},
|
|
render:function(){
|
|
return (
|
|
React.createElement("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; |