Skip to content

Commit

Permalink
Merge pull request github#15784 from github/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
Octomerger authored Feb 23, 2022
2 parents 81cda4a + 64dab95 commit 277d335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/page-footer/SupportSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ import { Contribution } from 'components/page-footer/Contribution'
import { Support } from 'components/page-footer/Support'
import { useMainContext } from 'components/context/MainContext'
import { useVersion } from 'components/hooks/useVersion'
import { useRouter } from 'next/router'

export const SupportSection = () => {
const { currentVersion } = useVersion()
const { relativePath, enterpriseServerReleases } = useMainContext()
const router = useRouter()

const isDeprecated =
enterpriseServerReleases.isOldestReleaseDeprecated &&
currentVersion.includes(enterpriseServerReleases.oldestSupported)
const isEarlyAccess = relativePath?.includes('early-access/')
const isEnglish = router.locale === 'en'

return (
<section className="container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto">
Expand All @@ -23,7 +26,7 @@ export const SupportSection = () => {
<Survey />
</div>
)}
{!isDeprecated && !isEarlyAccess && (
{!isDeprecated && !isEarlyAccess && isEnglish && (
<div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left pr-4 offset-xl-1">
<Contribution />
</div>
Expand Down

0 comments on commit 277d335

Please sign in to comment.