From 6bd8fe6d49214743f82fa2dc71847c241f140c87 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 7 Nov 2022 17:25:23 +0100 Subject: [PATCH] no survey on /site-policy docs (#32402) --- components/page-footer/SupportSection.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/components/page-footer/SupportSection.tsx b/components/page-footer/SupportSection.tsx index 56d7fc2d9d..c3a6d0e1bd 100644 --- a/components/page-footer/SupportSection.tsx +++ b/components/page-footer/SupportSection.tsx @@ -17,25 +17,31 @@ export const SupportSection = () => { currentVersion.includes(enterpriseServerReleases.oldestSupported) const isEarlyAccess = relativePath?.includes('early-access/') const isEnglish = router.locale === 'en' + const isSitePolicyDocs = router.asPath.startsWith('/site-policy') + + const showSurvey = !isDeprecated && !isSitePolicyDocs + const showContribution = !isDeprecated && !isEarlyAccess && isEnglish return (
- {!isDeprecated && ( + {showSurvey && (
)} - {!isDeprecated && !isEarlyAccess && isEnglish && ( -
+ {showContribution && ( +
)}