Skip to content

Commit

Permalink
Only display footer when logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellity committed Jul 21, 2016
1 parent 5c30308 commit 2552853
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.jsx
Expand Up @@ -50,13 +50,19 @@ const HullLogin = React.createClass({
return !this.state.shipSettings.custom_styles ? null : <style dangerouslySetInnerHTML={{__html: this.state.shipSettings.custom_styles}}></style>;
},

renderFooter() {
if (!this.state.user) {
return <TranslatedMessage message="footer" tag="p" fallback="" />;
}
},

render() {
return (
<div styleName="ship">
<Styles scope={this.props.styles.ship} styles={this.props.styles} settings={this.state.shipSettings} />
{this.renderUserStyles()}
<SocialButtons {...this.state} {...this.props.actions} />
<TranslatedMessage message="footer" tag="p" fallback="" />
{this.renderFooter()}
</div>
);
},
Expand Down

0 comments on commit 2552853

Please sign in to comment.