Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Nov 10, 2023
1 parent 209e106 commit b5450c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/dashboard/src/components/PageWithSubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
7 changes: 2 additions & 5 deletions components/dashboard/src/components/WidePageWithSubmenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b5450c2

Please sign in to comment.