From 616a2df2b007d12081f32d112ce836622077763f Mon Sep 17 00:00:00 2001 From: Tom Linton Date: Sun, 21 Apr 2019 02:48:01 +1200 Subject: [PATCH] Disable growth banner in webview (#2084) --- dapps/marketplace/src/pages/App.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dapps/marketplace/src/pages/App.js b/dapps/marketplace/src/pages/App.js index 8419286e6de2..3061940085c8 100644 --- a/dapps/marketplace/src/pages/App.js +++ b/dapps/marketplace/src/pages/App.js @@ -78,10 +78,12 @@ class App extends Component { const { creatorConfig } = this.props applyConfiguration(creatorConfig) - // hide the rewards bar if you're on any of the rewards pages + // hide the rewards bar if you're on any of the rewards pages or using + // the DApp via the webview in the mobile app const hideRewardsBar = this.props.location.pathname.match(/^\/welcome$/g) || - this.props.location.pathname.match(/^\/campaigns$/g) + this.props.location.pathname.match(/^\/campaigns$/g) || + window.__mobileBridge // hide navigation bar on growth welcome screen and show it // in onboarding variation of that screen