Skip to content

Commit

Permalink
adds error message to create post page if user does not have insta coins
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz10 committed Jan 20, 2018
1 parent 25fe41b commit cd18fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ code {
right: 7.5%;
}

.error-message {
color: red
}
2 changes: 1 addition & 1 deletion src/components/CreatePost.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CreatePost extends Component {
/><br />
</div>
:
<h4>You have to buy InstaCoins First!</h4>
<h4 className="error-message">You have to buy InstaCoins First!</h4>
}
<h4 id="coin-count">You currently have {this.props.user.coinBalance} Coins <br /></h4>
{ this.state.postUrl.length &&
Expand Down

0 comments on commit cd18fd1

Please sign in to comment.