Created
August 29, 2018 10:40
-
-
Save oxodesign/d4c2dbc41c9f85eaaa18a432b21da9ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
class Online extends Component { | |
renderStatus() { | |
if(this.props.online === true){ | |
return <span className="text-success">ONLINE</span> | |
} | |
return <span className="text-danger">OFFLINE</span> | |
} | |
render() { | |
return ( | |
<p className="text-center"> | |
Strem Status: { this.renderStatus() } | |
</p> | |
); | |
} | |
} | |
export default Online; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment