Skip to content

Commit

Permalink
fix(@embark/demo): add back lights
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and michaelsbradleyjr committed Aug 28, 2019
1 parent f1b81c7 commit dd07f67
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 5 additions & 4 deletions dapps/templates/demo/app/components/storage.js
Expand Up @@ -157,11 +157,12 @@ class Storage extends React.Component {

render() {
return <React.Fragment>
{this.props.enabled &&
{!this.props.enabled &&
<React.Fragment>
<Alert color="warning">The node you are using does not support IPFS. Please ensure <a
href="https://github.com/ipfs/js-ipfs-api#cors" target="_blank">CORS</a> is setup for the IPFS
node.</Alert>
<Alert color="warning">The node you are using does not support IPFS. If
you haven't explicitly disabled IPFS in <code>config/storage.js</code> then
please ensure <a href="https://github.com/ipfs/js-ipfs-api#cors"
target="_blank">CORS</a> is setup for the IPFS node.</Alert>
</React.Fragment>}

{this.state.storageError !== '' &&
Expand Down
5 changes: 2 additions & 3 deletions dapps/templates/demo/app/dapp.css
@@ -1,4 +1,3 @@

div {
margin: 15px;
}
Expand All @@ -25,9 +24,9 @@ div {
}

.status-offline {
display: inline-block;
vertical-align: middle;
margin-left: 5px;
margin-top: 4px;
width: 12px;
height: 12px;
background: red;
Expand All @@ -37,9 +36,9 @@ div {
}

.status-online {
display: inline-block;
vertical-align: middle;
margin-left: 5px;
margin-top: 4px;
width: 12px;
height: 12px;
background: mediumseagreen;
Expand Down
2 changes: 1 addition & 1 deletion dapps/templates/demo/app/dapp.js
Expand Up @@ -50,7 +50,7 @@ class App extends React.Component {
let className = available ? 'pull-right status-online' : 'pull-right status-offline';
return <React.Fragment>
{title}
<span className={className}></span>
<span className={className}/>
</React.Fragment>;
}

Expand Down

0 comments on commit dd07f67

Please sign in to comment.