diff --git a/components/dashboard/src/components/PageWithSubMenu.tsx b/components/dashboard/src/components/PageWithSubMenu.tsx index c9d875258a289e..fd68f8f0bc3b0a 100644 --- a/components/dashboard/src/components/PageWithSubMenu.tsx +++ b/components/dashboard/src/components/PageWithSubMenu.tsx @@ -53,12 +53,12 @@ export function PageWithSubMenu(p: PageWithSubMenuProps) { ); } -type SubmenuItemProps = { +export type SubmenuItemProps = { title: string; link: string[]; }; -const SubmenuItem: FC<SubmenuItemProps> = ({ title, link }) => { +export const SubmenuItem: FC<SubmenuItemProps> = ({ title, link }) => { const location = useLocation(); const itemRef = useRef<HTMLLIElement>(null); diff --git a/components/dashboard/src/components/WidePageWithSubmenu.tsx b/components/dashboard/src/components/WidePageWithSubmenu.tsx index 0e8bfe37056876..120138b286b5b8 100644 --- a/components/dashboard/src/components/WidePageWithSubmenu.tsx +++ b/components/dashboard/src/components/WidePageWithSubmenu.tsx @@ -7,13 +7,10 @@ import classNames from "classnames"; import { Separator } from "./Separator"; import { cn } from "@podkit/lib/cn"; -import { SubmenuItem } from "./PageWithSubMenu"; +import { SubmenuItem, SubmenuItemProps } from "./PageWithSubMenu"; export interface PageWithSubMenuProps { - subMenu: { - title: string; - link: string[]; - }[]; + subMenu: SubmenuItemProps[]; children: React.ReactNode; }