From cd9a4d7f3a803c644f4805073b9a6fd7f7b05556 Mon Sep 17 00:00:00 2001 From: adamviktora Date: Wed, 11 Oct 2023 12:51:15 +0200 Subject: [PATCH] chore(Nav demo): update DashboardHeader/Wrapper imports --- packages/react-core/src/demos/examples/Nav/NavDefault.tsx | 4 ++-- packages/react-core/src/demos/examples/Nav/NavDrilldown.tsx | 1 + packages/react-core/src/demos/examples/Nav/NavExpandable.tsx | 4 ++-- packages/react-core/src/demos/examples/Nav/NavGrouped.tsx | 2 +- packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx | 2 +- .../src/demos/examples/Nav/NavHorizontalWithSubnav.tsx | 2 +- packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx | 4 ++-- .../react-core/src/demos/examples/Nav/deprecated/NavLight.tsx | 2 +- .../src/demos/examples/Nav/deprecated/NavTertiary.tsx | 4 ++-- 9 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/react-core/src/demos/examples/Nav/NavDefault.tsx b/packages/react-core/src/demos/examples/Nav/NavDefault.tsx index b10e1e56d12..e6ed9631325 100644 --- a/packages/react-core/src/demos/examples/Nav/NavDefault.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavDefault.tsx @@ -16,8 +16,8 @@ import { TextContent, Text } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../DashboardWrapper'; -import DashboardHeader from '../DashboardHeader'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavDefault: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState(0); diff --git a/packages/react-core/src/demos/examples/Nav/NavDrilldown.tsx b/packages/react-core/src/demos/examples/Nav/NavDrilldown.tsx index ca5fc4201c5..de84140dfc6 100644 --- a/packages/react-core/src/demos/examples/Nav/NavDrilldown.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavDrilldown.tsx @@ -27,6 +27,7 @@ function getNavLayer(menuId: string): number { case 'subMenu-2': return 3; } + return 1; } const subMenuTwo: JSX.Element = ( diff --git a/packages/react-core/src/demos/examples/Nav/NavExpandable.tsx b/packages/react-core/src/demos/examples/Nav/NavExpandable.tsx index 9e8e7304225..93ac5f83eba 100644 --- a/packages/react-core/src/demos/examples/Nav/NavExpandable.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavExpandable.tsx @@ -17,8 +17,8 @@ import { TextContent, Text } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../DashboardWrapper'; -import DashboardHeader from '../DashboardHeader'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavExpandableDemo: React.FunctionComponent = () => { const [activeGroup, setActiveGroup] = React.useState('grp-1'); diff --git a/packages/react-core/src/demos/examples/Nav/NavGrouped.tsx b/packages/react-core/src/demos/examples/Nav/NavGrouped.tsx index e82584cf42d..9a480ed8cc3 100644 --- a/packages/react-core/src/demos/examples/Nav/NavGrouped.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavGrouped.tsx @@ -12,7 +12,7 @@ import { TextContent, Text } from '@patternfly/react-core'; -import DashboardHeader from '../DashboardHeader'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavGrouped: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState('grp-1_itm-1'); diff --git a/packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx b/packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx index 0e586bcb0e0..7c9c41c4662 100644 --- a/packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx @@ -32,7 +32,6 @@ import { ToolbarGroup, ToolbarItem } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../DashboardWrapper'; import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'; import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon'; @@ -40,6 +39,7 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon'; import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg'; import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const NavHorizontal: React.FunctionComponent = () => { const [isDropdownOpen, setIsDropdownOpen] = React.useState(false); diff --git a/packages/react-core/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx b/packages/react-core/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx index 9d527d16cb9..63465716fd9 100644 --- a/packages/react-core/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx @@ -35,7 +35,6 @@ import { ToolbarGroup, ToolbarItem } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../DashboardWrapper'; import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'; import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'; import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon'; @@ -44,6 +43,7 @@ import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg'; import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; export const NavHorizontalWithSubnav: React.FunctionComponent = () => { const [isDropdownOpen, setIsDropdownOpen] = React.useState(false); diff --git a/packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx b/packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx index c2f4f07278a..ac0624f4394 100644 --- a/packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx +++ b/packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx @@ -17,8 +17,8 @@ import { TextContent, Text } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../DashboardWrapper'; -import DashboardHeader from '../DashboardHeader'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavWithSubnav: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState(0); diff --git a/packages/react-core/src/demos/examples/Nav/deprecated/NavLight.tsx b/packages/react-core/src/demos/examples/Nav/deprecated/NavLight.tsx index 2477cdd1e93..ec2a2c262e4 100644 --- a/packages/react-core/src/demos/examples/Nav/deprecated/NavLight.tsx +++ b/packages/react-core/src/demos/examples/Nav/deprecated/NavLight.tsx @@ -16,7 +16,7 @@ import { TextContent, Text } from '@patternfly/react-core'; -import DashboardHeader from '../../DashboardHeader'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavLight: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState(0); diff --git a/packages/react-core/src/demos/examples/Nav/deprecated/NavTertiary.tsx b/packages/react-core/src/demos/examples/Nav/deprecated/NavTertiary.tsx index 461506391bd..bd8b3a3ea4e 100644 --- a/packages/react-core/src/demos/examples/Nav/deprecated/NavTertiary.tsx +++ b/packages/react-core/src/demos/examples/Nav/deprecated/NavTertiary.tsx @@ -14,8 +14,8 @@ import { TextContent, Text } from '@patternfly/react-core'; -import { DashboardBreadcrumb } from '../../DashboardWrapper'; -import DashboardHeader from '../../DashboardHeader'; +import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper'; +import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader'; export const NavTertiary: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState(0);