Skip to content

Commit

Permalink
chore(Nav demo): update DashboardHeader/Wrapper imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Oct 11, 2023
1 parent a97623d commit cd9a4d7
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/react-core/src/demos/examples/Nav/NavDefault.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<number | string>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function getNavLayer(menuId: string): number {
case 'subMenu-2':
return 3;
}
return 1;
}

const subMenuTwo: JSX.Element = (
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/demos/examples/Nav/NavExpandable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | number>('grp-1');
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/demos/examples/Nav/NavGrouped.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<number | string>('grp-1_itm-1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ 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';
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | number>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | number>(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | number>(0);
Expand Down

0 comments on commit cd9a4d7

Please sign in to comment.