diff options
author | Pauline <git@ethanlibs.co> | 2024-01-22 03:30:30 +0100 |
---|---|---|
committer | Pauline <git@ethanlibs.co> | 2024-01-22 03:30:30 +0100 |
commit | 61ba9fd1f62cb959f197cf95c2686809318c6482 (patch) | |
tree | 44bec06175f1b833f2131d14f461cf288e5b9200 /apps/website/src/components/base/navbar/NavbarElement.astro | |
parent | fbaa87ef4fcad18ac03cb0cfa82fb106751c1b38 (diff) | |
download | Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.gz Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.tar.bz2 Nexus-61ba9fd1f62cb959f197cf95c2686809318c6482.zip |
chore(deps): bump and format
Diffstat (limited to 'apps/website/src/components/base/navbar/NavbarElement.astro')
-rw-r--r-- | apps/website/src/components/base/navbar/NavbarElement.astro | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/website/src/components/base/navbar/NavbarElement.astro b/apps/website/src/components/base/navbar/NavbarElement.astro index 5e37253..b1e23d9 100644 --- a/apps/website/src/components/base/navbar/NavbarElement.astro +++ b/apps/website/src/components/base/navbar/NavbarElement.astro @@ -8,8 +8,8 @@ import ScrollbarOverlayContainer from '../ScrollbarOverlayContainer.astro'; import Tag from '../Tag.astro'; interface Props { - element: NavbarElement - index: number + element: NavbarElement; + index: number; } const { @@ -35,6 +35,7 @@ function isCurrentPage(url: string): boolean { : ( <label for={`navbar-input-${index}`} class="group"> {element.dropdown && ( + <> <p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path ?? '') ? 'text-blue-400' : 'text-gray-700'}`}> {element.text && element.text} {element.logo && <Logo size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>} @@ -93,8 +94,8 @@ function isCurrentPage(url: string): boolean { </ul> </ScrollbarOverlayContainer> </div> + </> )} </label> )} </li> -{/* WHY IS ESLINT DOING THIS */} |