From 6bb874f79948e9ab049f63e79dfd5f41af2c105b Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 8 Jun 2024 22:06:23 +0200 Subject: [PATCH] Fixed ref being used for component and not shallowRef --- components/calendar/Calendar.vue | 2 +- components/global/sidebar/SidebarProps.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue index 950b36b..d66314e 100644 --- a/components/calendar/Calendar.vue +++ b/components/calendar/Calendar.vue @@ -93,7 +93,7 @@ onMounted(() => { setCurrentMenu([ { - phIcon: PhMagnifyingGlass, + phIcon: shallowRef(PhMagnifyingGlass), tooltip: 'Recherche avancée', action: 'event-search' } diff --git a/components/global/sidebar/SidebarProps.ts b/components/global/sidebar/SidebarProps.ts index 4414df0..bb3cd9e 100644 --- a/components/global/sidebar/SidebarProps.ts +++ b/components/global/sidebar/SidebarProps.ts @@ -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