Fixed ref being used for component and not shallowRef

This commit is contained in:
Alexis
2024-06-08 22:06:23 +02:00
parent 6738ac76c4
commit 6bb874f799
2 changed files with 4 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ onMounted(() => {
setCurrentMenu([
{
phIcon: PhMagnifyingGlass,
phIcon: shallowRef(PhMagnifyingGlass),
tooltip: 'Recherche avancée',
action: 'event-search'
}

View File

@@ -1,7 +1,9 @@
import type { ShallowRef } from "vue"
export type SidebarMenuActionType = "event-search"
export interface SidebarMenuItem {
phIcon: Component
phIcon: ShallowRef
tooltip: string
action?: SidebarMenuActionType
to?: string