From 8f3577dbe6f1ef54063c80317a9cd2cd1f4d007d Mon Sep 17 00:00:00 2001 From: Heather Buchel Date: Tue, 21 Nov 2023 10:39:14 -0500 Subject: [PATCH] turn on gen2 banners (#6485) --- src/components/Layout/Layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx index 6831067f067..fb0ca3638eb 100644 --- a/src/components/Layout/Layout.tsx +++ b/src/components/Layout/Layout.tsx @@ -27,7 +27,7 @@ import { ALGOLIA_INDEX_NAME, ALGOLIA_APP_ID } from '../../constants/algolia'; -// import { GEN2BANNER_URLS } from '@/data/gen2Banner-urls'; +import { GEN2BANNER_URLS } from '@/data/gen2Banner-urls'; import { SpaceShip } from '@/components/SpaceShip'; import { IconMenu, IconDoubleChevron } from '@/components/Icons'; import { LEFT_NAV_LINKS, RIGHT_NAV_LINKS } from '@/utils/globalnav'; @@ -118,7 +118,7 @@ export const Layout = ({ const basePath = 'docs.amplify.aws'; const metaUrl = url ? url : basePath + asPathWithNoHash; const pathname = router.pathname; - const shouldShowGen2Banner = false; // GEN2BANNER_URLS.includes(asPathWithNoHash); + const shouldShowGen2Banner = GEN2BANNER_URLS.includes(asPathWithNoHash); const isGen2 = asPathWithNoHash.split('/')[1] === 'gen2'; let currentPlatform = isGen2 ? undefined : DEFAULT_PLATFORM; const isContributor = asPathWithNoHash.split('/')[1] === 'contribute';