Skip to content

Commit

Permalink
Merge pull request #648 from oasisprotocol/lw/stg-banner
Browse files Browse the repository at this point in the history
Remove feedback form from banner on staging
  • Loading branch information
lukaw3d authored Jul 3, 2023
2 parents 81ad1fb + bcbdc4a commit 5f7bd61
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
1 change: 1 addition & 0 deletions .changelog/648.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove feedback form from banner on staging
17 changes: 1 addition & 16 deletions src/app/components/BuildBanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import { Link as RouterLink } from 'react-router-dom'
import Link from '@mui/material/Link'
import * as externalLinks from '../../utils/externalLinks'
import { deploys } from '../../../config'
import { StickyAlert } from '../StickyAlert'

Expand All @@ -16,19 +13,7 @@ export const BuildBanner: FC = () => {
return null
}
if (window.location.origin === deploys.staging) {
return (
<StickyAlert severity="warning">
{t('banner.buildStaging')}
<Link
component={RouterLink}
to={externalLinks.feedback.internalForm}
target="_blank"
rel="noopener noreferrer"
>
{externalLinks.feedback.internalForm}
</Link>
</StickyAlert>
)
return <StickyAlert severity="warning">{t('banner.buildStaging')}</StickyAlert>
}
return <StickyAlert severity="warning">{t('banner.buildPreview')}</StickyAlert>
}
4 changes: 0 additions & 4 deletions src/app/utils/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export const docs = {

export const referrals = { coinGecko: 'https://www.coingecko.com' }

export const feedback = {
internalForm: 'https://forms.gle/456sjk9VXhhKkVz19',
}

const githubLink = 'https://github.com/oasisprotocol/explorer/'
export const github = {
home: githubLink,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"gasUsed": "{{value, number}} | {{percentage, number}}"
},
"banner": {
"buildStaging": "Please note this is an internal launch meant to gather your feedback. Please share your feedback with screenshots through this from: ",
"buildStaging": "Please note this is an internal launch meant to gather your feedback.",
"buildPreview": "Please note this is an experimental build of Oasis Explorer and that data that is shown might be incorrect."
},
"clipboard": {
Expand Down

0 comments on commit 5f7bd61

Please sign in to comment.