diff --git a/js/components/whitelabel/wallet/components/cyland/cyland_landing.js b/js/components/whitelabel/wallet/components/cyland/cyland_landing.js index 1512587e..650fd88c 100644 --- a/js/components/whitelabel/wallet/components/cyland/cyland_landing.js +++ b/js/components/whitelabel/wallet/components/cyland/cyland_landing.js @@ -3,6 +3,10 @@ import React from 'react'; import Router from 'react-router'; + +import WhitelabelActions from '../../../../../actions/whitelabel_actions'; +import WhitelabelStore from '../../../../../stores/whitelabel_store'; + import ButtonLink from 'react-router-bootstrap/lib/ButtonLink'; import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'; @@ -18,17 +22,21 @@ let CylandLanding = React.createClass({ getInitialState() { return mergeOptions( - UserStore.getState() + UserStore.getState(), + WhitelabelStore.getState() ); }, componentDidMount() { UserStore.listen(this.onChange); UserActions.fetchCurrentUser(); + WhitelabelStore.listen(this.onChange); + WhitelabelActions.fetchWhitelabel(); }, componentWillUnmount() { UserStore.unlisten(this.onChange); + WhitelabelStore.unlisten(this.onChange); }, onChange(state) { @@ -46,22 +54,29 @@ let CylandLanding = React.createClass({
-
- +
+ +
+ Submissions to Cyland Archive are powered by + + ascribe + + +
-
+
-
+

Existing ascribe user? -

+

Log in
-
+

Do you need an account? -

+

Sign up diff --git a/js/components/whitelabel/wallet/wallet_app.js b/js/components/whitelabel/wallet/wallet_app.js index 311efd5c..a10593b4 100644 --- a/js/components/whitelabel/wallet/wallet_app.js +++ b/js/components/whitelabel/wallet/wallet_app.js @@ -10,10 +10,19 @@ import GlobalNotification from '../../global_notification'; let RouteHandler = Router.RouteHandler; let WalletApp = React.createClass({ + mixins: [Router.State], + render() { + let header = null; + if (this.isActive('landing') || this.isActive('login') || this.isActive('signup')) { + header = ( +
); + } else { + header =
; + } return (
-
+ {header}