diff options
Diffstat (limited to 'src/ConnectedIndicator.js')
-rw-r--r-- | src/ConnectedIndicator.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ConnectedIndicator.js b/src/ConnectedIndicator.js index d4e1686..3296ef9 100644 --- a/src/ConnectedIndicator.js +++ b/src/ConnectedIndicator.js @@ -5,7 +5,8 @@ export default class ConnectedIndicator extends Component { let connectedText = this.props.connected ? "Connected" : "Not connected" let color = this.props.connected ? "green" : "red" return <div><span style={{ - background:color + background:color, + display: "inline-block" }}>{connectedText}</span></div> } }
\ No newline at end of file |