Skip to content

Commit

Permalink
Make test pass – render nothing when isLoading is true
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharris committed Dec 6, 2017
1 parent dad3332 commit 15c12da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/LoadingIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import PropTypes from 'prop-types';

export default class LoadingIndicator extends Component {
render() {
if (this.props.isLoading) {
return null;
}
return this.props.children;
}
}
Expand Down

0 comments on commit 15c12da

Please sign in to comment.