1
0
mirror of synced 2026-01-09 06:03:09 -05:00

Merge pull request #15784 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-02-23 13:54:48 -08:00
committed by GitHub

View File

@@ -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">
@@ -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>