Commit 35eb35ec authored by MrMan's avatar MrMan

Resolves #32, hide bio text with rest of info

parent 518349b4
Pipeline #1305601 skipped
*~
*.swp
jspm_packages/
/node_modules/
dist/
......@@ -91,6 +91,9 @@ class RecsPage extends React.Component {
</div>
);
// Generate optional bio fragment
let bioFragment = this.state.detailVisible ? (<h3 className="picture-overlay-text no-margin">{this.state.rec.bio}</h3>) : null;
return (
<div className="full-height">
......@@ -108,7 +111,8 @@ class RecsPage extends React.Component {
<h1 className="picture-overlay-text no-margin">
{this.state.rec.name} <GenderIcon gender={this.state.rec.gender}/>
</h1>
<h3 className="picture-overlay-text no-margin">{this.state.rec.bio}</h3>
{bioFragment}
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment