Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove feedback form from banner on staging #648

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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