fix jsx spacing

This commit is contained in:
slice 2018-07-16 18:06:15 -07:00
parent 07a304cbc1
commit 7cd549c46b
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
4 changed files with 7 additions and 7 deletions

View File

@ -209,9 +209,9 @@ export default class App extends Component {
{this.state.loading && !this.state.error ? ( {this.state.loading && !this.state.error ? (
<React.Fragment> <React.Fragment>
<ServicePlaceholder /> <ServicePlaceholder/>
<ServicePlaceholder /> <ServicePlaceholder/>
<ServicePlaceholder /> <ServicePlaceholder/>
</React.Fragment> </React.Fragment>
) : metrics} ) : metrics}
</div> </div>

View File

@ -78,7 +78,7 @@ export default class Graph extends Component {
/> />
{yAxis} {yAxis}
<CartesianGrid strokeDasharray="1 1" /> <CartesianGrid strokeDasharray="1 1"/>
<Tooltip <Tooltip
isAnimationActive={false} isAnimationActive={false}
formatter={(value) => `${value}ms`} formatter={(value) => `${value}ms`}

View File

@ -49,7 +49,7 @@ const Service = ({ graph, name, status, latency, description }) => {
<div className="service"> <div className="service">
<header> <header>
<div className="emoji" title={title}> <div className="emoji" title={title}>
<FontAwesomeIcon title={title} icon={icon} style={{ color }} /> <FontAwesomeIcon title={title} icon={icon} style={{ color }}/>
</div> </div>
<h2 className="title"> <h2 className="title">
{name} {latency ? ( {name} {latency ? (
@ -62,7 +62,7 @@ const Service = ({ graph, name, status, latency, description }) => {
<p className="description"> <p className="description">
{description} {description}
</p> </p>
{graph ? <Graph data={graph} /> : null} {graph ? <Graph data={graph}/> : null}
</div> </div>
) )
} }

View File

@ -8,6 +8,6 @@ import register from './icons.js'
register() register()
ReactDOM.render( ReactDOM.render(
<App />, <App/>,
document.getElementById('root'), document.getElementById('root'),
) )