Skip to content

Commit

Permalink
Update docs menu
Browse files Browse the repository at this point in the history
  • Loading branch information
joshnuss committed Jul 5, 2024
1 parent 1342eac commit 7927444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/docs/src/lib/components/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { page } from '$app/stores'
import Icon from '@iconify/svelte'
export let menuItems
export let menus
let popover
Expand All @@ -22,7 +22,7 @@
</button>

<nav>
{#each menuItems as menu}
{#each menus as menu}
<a href={menu.url} class:active={menu.url == $page.url.pathname}>
{menu.name}
</a>
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { syncToc } from '$lib/toc'
import Menu from '$lib/components/Menu.svelte'
const menuItems = [
const menus = [
{ url: '/getting-started', name: 'Getting Started' },
{ url: '/configuration', name: 'Configuration' },
{ url: '/database', name: 'Database' },
Expand All @@ -29,7 +29,7 @@
/>
</svelte:head>

<Menu {menuItems} bind:this={menu} />
<Menu {menus} bind:this={menu} />

<header>
<a class="logo" href="/">
Expand All @@ -53,7 +53,7 @@

<aside>
<nav>
{#each menuItems as menu}
{#each menus as menu}
<a href={menu.url} class:active={menu.url == $page.url.pathname}>
{menu.name}
</a>
Expand Down

0 comments on commit 7927444

Please sign in to comment.