diff --git a/Actions.js b/Actions.js index 8bf54ecd3..58f2beb56 100644 --- a/Actions.js +++ b/Actions.js @@ -126,39 +126,31 @@ class Actions { if (!this.currentRouter){ throw new Error("No current router is set"); } - if (num > 1){ - for (let i=0;i); - const navBar = renderNavBar(props); - - if (route.props.hideNavBar === false){ - return navBar; - } - if (this.props.router.props.hideNavBar || route.props.hideNavBar){ - return null; - } - return navBar; - - } - render() { const router = this.props.router; + const route = this.props.router.nextRoute || this.props.router.currentRoute; if (!router){ throw new Error("No router is defined"); } const Header = this.props.header; - const header = Header ?
: null; + const header = Header ?
: null; const Footer = this.props.footer; - const footer = Footer ?