Skip to content

Commit

Permalink
fixed ts error on the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 9, 2023
1 parent 5d2587e commit 2b66a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const metadata = {

export const revalidate = 3600;

const RootLayout = ({children, modal}: { children: React.ReactNode, modal?: React.ReactNode }) => {
const RootLayout = ({children, modal}: { children: React.ReactNode, modal: React.ReactNode }) => {
const draftMode = isDraftMode();
return (
<html lang="en" className={`${sourceSansPro.className} font-sans`}>
Expand Down
8 changes: 4 additions & 4 deletions src/components/menu/main-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface MenuItemProps {
id: string
url: string
title: string
items?: DrupalMenuLinkContent[]
items: DrupalMenuLinkContent[]
activeTrail: string[]
level?: number
}
Expand Down Expand Up @@ -151,7 +151,7 @@ const MenuItem = ({id, url, title, items, activeTrail, level = 0}: MenuItemProps
{title}
</Link>

{items &&
{items.length > 0 &&
<>
{level === 0 && <div className="block ml-5 w-[1px] h-[25px] mb-[6px] bg-archway-light shrink-0"/>}
<button
Expand All @@ -161,8 +161,8 @@ const MenuItem = ({id, url, title, items, activeTrail, level = 0}: MenuItemProps
aria-expanded={submenuOpen}
>
<ChevronDownIcon
height={40}
className={(submenuOpen ? "rotate-180" : "") + " transition group-hocus:scale-150 group-hocus:text-black ease-in-out duration-150"}
height={35}
className={(submenuOpen ? "rotate-180" : "") + " transition group-hocus:scale-125 group-hocus:text-black ease-in-out duration-150"}
/>
<span className="sr-only">{submenuOpen ? "Close" : "Open"} {title} Submenu</span>
</button>
Expand Down

0 comments on commit 2b66a08

Please sign in to comment.