Skip to content

Commit

Permalink
turn on gen2 banners (#6485)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuchel authored Nov 21, 2023
1 parent f1bd7a7 commit 8f3577d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 8f3577d

Please sign in to comment.