diff --git a/app/components/header.tsx b/app/components/header.tsx index 3e2d59a..dd95574 100644 --- a/app/components/header.tsx +++ b/app/components/header.tsx @@ -3,7 +3,7 @@ import clsx from 'clsx' import type { MenuLink } from '~/types' import { Link } from '~/components/link' import { Logo } from '~/components/logo' -import { Nav } from '~/components/navMenu' +import { Nav } from '~/components/nav' const menuLinks: MenuLink[] = [ { diff --git a/app/components/nav/index.ts b/app/components/nav/index.ts new file mode 100644 index 0000000..88e601a --- /dev/null +++ b/app/components/nav/index.ts @@ -0,0 +1,2 @@ +export { default as Nav } from './nav' +export { default as NavMenu } from './nav-menu' diff --git a/app/components/navMenu.tsx b/app/components/nav/nav-menu.tsx similarity index 84% rename from app/components/navMenu.tsx rename to app/components/nav/nav-menu.tsx index 3ef392d..6335b44 100644 --- a/app/components/navMenu.tsx +++ b/app/components/nav/nav-menu.tsx @@ -6,7 +6,7 @@ import { ChevronDownIcon } from '@heroicons/react/solid' import type { NavMenuProps } from '~/types' import { Link } from '~/components/link' -export const NavMenu = ({ as = 'div', children, className, link }: NavMenuProps) => ( +const NavMenu = ({ as = 'div', children, className, link }: NavMenuProps) => (
) -interface NavProps { - children: React.ReactNode - className?: string -} - -export class Nav extends React.Component