From cb2d4328a8654c0da54665d7a9bf0a0e270facdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sun, 31 Dec 2023 01:54:02 -0500 Subject: [PATCH] refactor(components): remove unused `loaded` injection from sidebar --- components/layouts/sidebar.vue | 43 +++++++++++++++------------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/components/layouts/sidebar.vue b/components/layouts/sidebar.vue index 9f0ac35..413888f 100644 --- a/components/layouts/sidebar.vue +++ b/components/layouts/sidebar.vue @@ -5,8 +5,6 @@ import { ISidebarItem } from "@models/sidebarEntry"; import { NuxtLink } from "#components"; - const loaded = inject>("loaded"); - const { useToken } = theme; const { token } = useToken(); @@ -14,7 +12,7 @@ const { data: injecto } = await useApiFetch("/sidebar"); - let items: Ref = ref([ + let items = reactive([ { key: "important", label: h("span", { class: "smallcaps" }, ["Pinned"]), @@ -79,26 +77,23 @@ // console.log("wtf", items)