Skip to content

Commit

Permalink
style: adding gap in menu items (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Noelia <noeliadonato@gmail.com>
  • Loading branch information
LuisSarmientoM and nsdonato authored Jan 27, 2024
1 parent b6f9655 commit b25bf87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/sidebar-menu/sidebar-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export const SidebarMenu = async ({ className }: SidebarMenuProps) => {

return (
<nav className={className}>
<ul className='menu rounded-box shadow-lg'>
<ul className='menu rounded-box shadow-lg grid gap-1'>
{menu.map(menuItem => (
<li key={menuItem.name}>
{menuItem.name === MAIN_MENU ? (
<LinkWrapper href='/'> {menuItem.name}</LinkWrapper>
) : (
<details open>
<summary>{menuItem.name}</summary>
<ul>
<ul className='grid gap-1'>
{menuItem.items?.length === 1 ? (
<SidebarMenuItem items={[]} />
) : (
Expand Down
4 changes: 2 additions & 2 deletions components/sidebar-menu/sidebar-submenu-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ type SidebarSubMenuItemProps = {

export const SidebarSubMenuItem = ({ submenu }: SidebarSubMenuItemProps) => {
return (
<li>
<li className='grid gap-1'>
<details>
<summary>{submenu.name}</summary>
<ul>
<ul className='grid gap-1'>
<SidebarMenuItem items={submenu.items} />
</ul>
</details>
Expand Down

0 comments on commit b25bf87

Please sign in to comment.