File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/site-kit/src/lib/nav Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
import { expoOut , quintOut } from ' svelte/easing' ;
7
7
import type { TransitionConfig } from ' svelte/transition' ;
8
8
import Icon from ' ../components/Icon.svelte' ;
9
- import NavContextMenu from ' ./NavContextMenu .svelte' ;
9
+ import MobileSubMenu from ' ./MobileSubMenu .svelte' ;
10
10
import type { NavigationLink } from ' ../types' ;
11
11
import ModalOverlay from ' ../components/ModalOverlay.svelte' ;
12
12
20
20
21
21
let show_context_menu = $state (!! current ?.sections );
22
22
23
- let nav_context_instance: NavContextMenu | undefined = $state ();
23
+ let nav_context_instance: ReturnType < typeof MobileSubMenu > | undefined = $state ();
24
24
25
25
let menu_height = $state (0 );
26
26
let universal_menu_inner_height = $state (0 );
153
153
154
154
<div class ="context" inert ={! show_context_menu }>
155
155
{#if current }
156
- <NavContextMenu
156
+ <MobileSubMenu
157
157
bind:this ={nav_context_instance }
158
158
title ={current .title }
159
159
contents ={current .sections }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
7
7
import Icon from ' ../components/Icon.svelte' ;
8
8
import { page } from ' $app/stores' ;
9
9
import ThemeToggle from ' ../components/ThemeToggle.svelte' ;
10
- import Menu from ' ./Menu .svelte' ;
10
+ import MobileMenu from ' ./MobileMenu .svelte' ;
11
11
import type { NavigationLink } from ' ../types' ;
12
12
import Dropdown from ' ../components/Dropdown.svelte' ;
13
13
import { HoverMenu } from ' ../components' ;
@@ -174,7 +174,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
174
174
175
175
{#if open }
176
176
<div class =" mobile" >
177
- <Menu {links } {current } onclose ={() => (open = false )} />
177
+ <MobileMenu {links } {current } onclose ={() => (open = false )} />
178
178
</div >
179
179
{/if }
180
180
You can’t perform that action at this time.
0 commit comments