Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Disable growth banner in webview (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Linton authored and nick committed May 3, 2019
1 parent 3789847 commit 616a2df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dapps/marketplace/src/pages/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 616a2df

Please sign in to comment.