From 064c8cf0625cbfde47ed7e005a9d620a2a0ed94b Mon Sep 17 00:00:00 2001 From: "Chris B. France" <7366+christopherfrance@users.noreply.github.com> Date: Thu, 17 Aug 2023 18:07:42 -0700 Subject: [PATCH] Fix relative paths --- components/NavigationLayout/constants/src/index.ts | 3 +-- components/SidebarNavigation/react/_SidebarNavigationGroup.tsx | 2 +- components/SidebarNavigation/react/_SidebarNavigationHead.tsx | 2 +- components/SidebarNavigation/react/_SidebarNavigationLink.tsx | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/NavigationLayout/constants/src/index.ts b/components/NavigationLayout/constants/src/index.ts index 69ba980c6..53634b47d 100644 --- a/components/NavigationLayout/constants/src/index.ts +++ b/components/NavigationLayout/constants/src/index.ts @@ -1,8 +1,7 @@ -// TODO fix relative paths import type { NavGroup, NavItemLink, -} from '../../../SidebarNavigation/constants/dist' +} from '@cypress-design/constants-SidebarNavigation' interface NavigationItem { name: string diff --git a/components/SidebarNavigation/react/_SidebarNavigationGroup.tsx b/components/SidebarNavigation/react/_SidebarNavigationGroup.tsx index 49d767956..169bc207c 100644 --- a/components/SidebarNavigation/react/_SidebarNavigationGroup.tsx +++ b/components/SidebarNavigation/react/_SidebarNavigationGroup.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import clsx from 'clsx' import { SidebarNavigationLink } from './_SidebarNavigationLink' -import { NavGroup } from '../constants/dist' +import { NavGroup } from '@cypress-design/constants-SidebarNavigation' export interface SidebarNavigationGroupProps { group: NavGroup diff --git a/components/SidebarNavigation/react/_SidebarNavigationHead.tsx b/components/SidebarNavigation/react/_SidebarNavigationHead.tsx index 69e24b06d..acec4ced4 100644 --- a/components/SidebarNavigation/react/_SidebarNavigationHead.tsx +++ b/components/SidebarNavigation/react/_SidebarNavigationHead.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx' import { SidebarNavigationHeadInterface, ProjectInterface, -} from '../constants/dist' +} from '@cypress-design/constants-SidebarNavigation' import { IconGeneralGrid2X2Small } from '@cypress-design/react-icon' export const SidebarNavigationHead: React.FC< diff --git a/components/SidebarNavigation/react/_SidebarNavigationLink.tsx b/components/SidebarNavigation/react/_SidebarNavigationLink.tsx index 76d957f15..06860219d 100644 --- a/components/SidebarNavigation/react/_SidebarNavigationLink.tsx +++ b/components/SidebarNavigation/react/_SidebarNavigationLink.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import clsx from 'clsx' -import { SidebarNavigationLinkInterface } from '../constants/dist' +import { SidebarNavigationLinkInterface } from '@cypress-design/constants-SidebarNavigation' export const SidebarNavigationLink: React.FC< SidebarNavigationLinkInterface