Skip to content

Commit 2ac7d1c

Browse files
authored
Merge pull request #2244 from oasisprotocol/lw/hide-experimental-app
Hide experimental build banner in mobile app
2 parents b7588b5 + f8497de commit 2ac7d1c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changelog/2244.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hide experimental build banner in mobile app

src/app/components/BuildBanner/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { AlertBox } from 'app/components/AlertBox'
55
import { buildBannerZIndex } from '../../../styles/theme/elementSizes'
66
import styled from 'styled-components'
77
import { deploys } from '../../../config'
8+
import { runtimeIs } from '../../lib/runtimeIs'
89

910
const StickyBanner = styled(Box)`
1011
position: sticky;
@@ -23,6 +24,12 @@ export const BuildBanner = () => {
2324
return null
2425
}
2526

27+
if (runtimeIs === 'mobile-app') {
28+
// On web we want to deploy the exact same bundle on staging and then production, so we
29+
// show banner based on location. That can't work with apk files.
30+
return null
31+
}
32+
2633
if (deploys.production.includes(window.location.origin)) {
2734
return null
2835
}

0 commit comments

Comments
 (0)