Skip to content

Commit 5ddd7e3

Browse files
author
Erik Hanchett
committed
Updated based on review
1 parent fe0f2e2 commit 5ddd7e3

File tree

4 files changed

+18
-67
lines changed

4 files changed

+18
-67
lines changed

src/components/Layout/Layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
PLATFORM_DISPLAY_NAMES,
2222
Platform
2323
} from '@/data/platforms';
24-
import { GEN2BANNER_URLS } from '@/data/gen2Banner-urls';
2524
import { SpaceShip } from '@/components/SpaceShip';
2625
import { LEFT_NAV_LINKS, RIGHT_NAV_LINKS } from '@/utils/globalnav';
2726
import { LayoutProvider, LayoutHeader } from '@/components/Layout';
@@ -73,7 +72,7 @@ export const Layout = ({
7372
const basePath = 'docs.amplify.aws';
7473
const metaUrl = url ? url : basePath + asPathWithNoHash;
7574
const pathname = router.pathname;
76-
const shouldShowGen2Banner = GEN2BANNER_URLS.includes(asPathWithNoHash);
75+
const shouldShowGen2Banner = asPathWithNoHash === '/';
7776
const isGen1 = asPathWithNoHash.split('/')[1] === 'gen1';
7877
const isContributor = asPathWithNoHash.split('/')[1] === 'contribute';
7978
const currentGlobalNavMenuItem = isContributor ? 'Contribute' : 'Docs';

src/data/gen2Banner-urls.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/directory/directory.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export type PageNode = {
5959
hideChildrenOnBase?: boolean;
6060

6161
/**
62-
* This flag indicates that the item is new and will display a pill
62+
* This flag indicates that the item is new and will display a "new" badge
6363
*/
6464
isNew?: boolean;
6565
};

yarn.lock

Lines changed: 16 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -350,44 +350,24 @@
350350
fast-xml-parser "^4.4.1"
351351
tslib "^2.5.0"
352352

353-
"@aws-amplify/ui-react-ai@^1.0.0":
354-
version "1.0.0"
355-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react-ai/-/ui-react-ai-1.0.0.tgz#db6dede6b42685f9c03293374a1aaf195de7f02f"
356-
integrity sha512-Y+ezPjjdUajEjN+naWhaBn7TQ4nVEtB0EylGwI8YrLKHFQVJaEGBWvvw9mfiUl3krWv+utP+EhagTM8Zk9cMBg==
357-
dependencies:
358-
"@aws-amplify/ui" "^6.6.6"
359-
"@aws-amplify/ui-react" "^6.6.0"
360-
"@aws-amplify/ui-react-core" "^3.0.30"
361-
362-
"@aws-amplify/[email protected]", "@aws-amplify/ui-react-core@^3.0.30":
363-
version "3.0.30"
364-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react-core/-/ui-react-core-3.0.30.tgz#e86346d5293bfa7f22aae9832fc0bef94ea64a83"
365-
integrity sha512-3AaUSC1Mg+yr7TqHfp34QpP6ICjQl9wUR+x7KxsETc7m5tCv4ANGXOD7qaADCi3CEw2IChBFuVu4NFKsGJbjqQ==
353+
"@aws-amplify/[email protected]":
354+
version "3.0.22"
355+
resolved "https://registry.npmjs.org/@aws-amplify/ui-react-core/-/ui-react-core-3.0.22.tgz"
356+
integrity sha512-uL5jspqvTZhpqH1inPV3ifvrzIVgIIriXPgjz4BaceDm+1X03Hc3tfq5TiUKW8PdpuWF6riXXBP3MEFsk29OGw==
366357
dependencies:
367-
"@aws-amplify/ui" "6.6.6"
358+
"@aws-amplify/ui" "6.4.1"
368359
"@xstate/react" "^3.2.2"
369360
lodash "4.17.21"
370361
react-hook-form "^7.43.5"
371362
xstate "^4.33.6"
372363

373-
"@aws-amplify/ui-react-core@3.1.0":
374-
version "3.1.0"
375-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react-core/-/ui-react-core-3.1.0.tgz#236ecf10194a27dc57fc983c679ab1de19b8a00d"
376-
integrity sha512-Nime3qjJRQyfRDDA4bnAaFVzRfEBddZFP8NhVIb13z7Uw0XoPQzX+dXwuRW+Bjt2FJnlIUHh7Cfkt0m4PedRHQ==
364+
"@aws-amplify/ui-react@^6.3.1":
365+
version "6.3.1"
366+
resolved "https://registry.npmjs.org/@aws-amplify/ui-react/-/ui-react-6.3.1.tgz"
367+
integrity sha512-n/wTjMYYuAhpgpuQ4o+9+IgvNsdjGqbfaA4bAXE7b1apIOfM8HTaO2zant85x+geDl7rbaa1y/z62T4H9AksMQ==
377368
dependencies:
378-
"@aws-amplify/ui" "6.7.0"
379-
"@xstate/react" "^3.2.2"
380-
lodash "4.17.21"
381-
react-hook-form "^7.43.5"
382-
xstate "^4.33.6"
383-
384-
"@aws-amplify/ui-react@^6.6.0":
385-
version "6.6.0"
386-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react/-/ui-react-6.6.0.tgz#1d10f435286fcac5e07330e318a0e30c0c84de94"
387-
integrity sha512-BHth+/CBZ8XE0IBpq+L/7mWbvGRIQxjtOmW50593hW7PvtaSXXDzPHZXRQ5nRhWs1anhxNWDiv4BKuiey6YpOw==
388-
dependencies:
389-
"@aws-amplify/ui" "6.6.6"
390-
"@aws-amplify/ui-react-core" "3.0.30"
369+
"@aws-amplify/ui" "6.4.1"
370+
"@aws-amplify/ui-react-core" "3.0.22"
391371
"@radix-ui/react-direction" "1.0.0"
392372
"@radix-ui/react-dropdown-menu" "1.0.0"
393373
"@radix-ui/react-slider" "1.0.0"
@@ -396,34 +376,10 @@
396376
qrcode "1.5.0"
397377
tslib "^2.5.2"
398378

399-
"@aws-amplify/ui-react@^6.7.0":
400-
version "6.7.0"
401-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react/-/ui-react-6.7.0.tgz#a3fc28980feee01f319448c360307a5ccc65c7f3"
402-
integrity sha512-3H97gz43+iaVNPqkQIiFj4Ko7zJLyMGtZScfNyt6PK4Ntuit5ZP6hc+Z7BtNsNEkfnAiGL1BiNOuD1IBfsnifw==
403-
dependencies:
404-
"@aws-amplify/ui" "6.7.0"
405-
"@aws-amplify/ui-react-core" "3.1.0"
406-
"@radix-ui/react-direction" "1.0.0"
407-
"@radix-ui/react-dropdown-menu" "1.0.0"
408-
"@radix-ui/react-slider" "1.0.0"
409-
"@xstate/react" "^3.2.2"
410-
lodash "4.17.21"
411-
qrcode "1.5.0"
412-
tslib "^2.5.2"
413-
414-
"@aws-amplify/[email protected]", "@aws-amplify/ui@^6.6.6":
415-
version "6.6.6"
416-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui/-/ui-6.6.6.tgz#adf39ea025ed2f35e46bb01323f8d73142b41f59"
417-
integrity sha512-4fBMO5+saXaAgBwhYbQIgudVcK1B9oHuG3WizMpImcYUbB5aL4B6NhFtmSz3DBBqAeqrZHUuUV7gWibU5JxAGQ==
418-
dependencies:
419-
csstype "^3.1.1"
420-
lodash "4.17.21"
421-
tslib "^2.5.2"
422-
423-
"@aws-amplify/[email protected]":
424-
version "6.7.0"
425-
resolved "https://registry.yarnpkg.com/@aws-amplify/ui/-/ui-6.7.0.tgz#f31da1515a25c2fac3d9e17c9638e619a988baf8"
426-
integrity sha512-6hByYfFBQRjsFMoVGdCWMSdo7rwMgz6rxxdWV0xuHb4j3tsPEI9ZhRXG0Z1ivtQFAM3Uaz0D3hcg1kp6QFdCFg==
379+
"@aws-amplify/[email protected]":
380+
version "6.4.1"
381+
resolved "https://registry.npmjs.org/@aws-amplify/ui/-/ui-6.4.1.tgz"
382+
integrity sha512-0rGGJjnd60gZNhjqDepk3VpCpzyJDE2+xevVg0iqM8APKpyQ9XRWisNLIvglQy7p/3CauXdw8U0NZVcu29Yhrw==
427383
dependencies:
428384
csstype "^3.1.1"
429385
lodash "4.17.21"
@@ -4618,7 +4574,7 @@ cross-env@^7.0.3:
46184574
dependencies:
46194575
cross-spawn "^7.0.1"
46204576

4621-
cross-spawn@^6.0.0, cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3, cross-spawn@^7.0.5:
4577+
cross-spawn@^6.0.0, "cross-spawn@^6.0.6 || ^7.0.5", cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
46224578
version "7.0.6"
46234579
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
46244580
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==

0 commit comments

Comments
 (0)