diff --git a/js/components/app_base.js b/js/components/app_base.js
index 4b5d460e..de1aab71 100644
--- a/js/components/app_base.js
+++ b/js/components/app_base.js
@@ -4,7 +4,6 @@ import React from 'react';
import classNames from 'classnames';
import { History } from 'react-router';
-import Footer from './footer';
import GlobalNotification from './global_notification';
import AppConstants from '../constants/application_constants';
@@ -48,7 +47,6 @@ export default function AppBase(App) {
return (
-
diff --git a/js/components/ascribe_app.js b/js/components/ascribe_app.js
index 0e28aa97..737a35f5 100644
--- a/js/components/ascribe_app.js
+++ b/js/components/ascribe_app.js
@@ -3,6 +3,7 @@
import React from 'react';
import AppBase from './app_base';
+import Footer from './footer';
import Header from './header';
@@ -23,6 +24,7 @@ let AscribeApp = React.createClass({
{/* Routes are injected here */}
{children}
+
);
}
diff --git a/js/components/footer.js b/js/components/footer.js
index f2e35dfc..3010da4d 100644
--- a/js/components/footer.js
+++ b/js/components/footer.js
@@ -5,8 +5,12 @@ import React from 'react';
import { getLangText } from '../utils/lang_utils';
let Footer = React.createClass({
+ propTypes: {
+ activeRoute: React.PropTypes.object.isRequired
+ },
+
render() {
- return (
+ return !this.props.activeRoute.hideFooter ? (
@@ -24,7 +28,7 @@ let Footer = React.createClass({
- );
+ ) : null;
}
});
diff --git a/js/components/whitelabel/prize/portfolioreview/pr_app.js b/js/components/whitelabel/prize/portfolioreview/pr_app.js
index 04b985db..c738c0bd 100644
--- a/js/components/whitelabel/prize/portfolioreview/pr_app.js
+++ b/js/components/whitelabel/prize/portfolioreview/pr_app.js
@@ -11,6 +11,7 @@ import UserActions from '../../../../actions/user_actions';
import Hero from './components/pr_hero';
import AppBase from '../../../app_base';
+import Footer from '../../../footer';
import Header from '../../../header';
import { getSubdomain } from '../../../../utils/general_utils';
@@ -85,6 +86,7 @@ let PRApp = React.createClass({
{/* Routes are injected here */}
{children}
+
);
}
diff --git a/js/components/whitelabel/prize/simple_prize/prize_app.js b/js/components/whitelabel/prize/simple_prize/prize_app.js
index d2a440dc..e3f1e290 100644
--- a/js/components/whitelabel/prize/simple_prize/prize_app.js
+++ b/js/components/whitelabel/prize/simple_prize/prize_app.js
@@ -6,6 +6,7 @@ import classNames from 'classnames';
import Hero from './components/prize_hero';
import AppBase from '../../../app_base';
+import Footer from '../../../footer';
import Header from '../../../header';
import { getSubdomain } from '../../../../utils/general_utils';
@@ -42,6 +43,7 @@ let PrizeApp = React.createClass({
{/* Routes are injected here */}
{children}
+
);
}
diff --git a/js/components/whitelabel/wallet/wallet_app.js b/js/components/whitelabel/wallet/wallet_app.js
index 7f30e203..c7afaa01 100644
--- a/js/components/whitelabel/wallet/wallet_app.js
+++ b/js/components/whitelabel/wallet/wallet_app.js
@@ -4,6 +4,7 @@ import React from 'react';
import classNames from 'classnames';
import AppBase from '../../app_base';
+import Footer from '../../footer';
import Header from '../../header';
import { getSubdomain } from '../../../utils/general_utils';
@@ -43,6 +44,7 @@ let WalletApp = React.createClass({
{/* Routes are injected here */}
{children}
+
);
}