diff --git a/app/composables/useXfetch.ts b/app/composables/useXfetch.ts
index e4e4c3ef..3f27c07f 100644
--- a/app/composables/useXfetch.ts
+++ b/app/composables/useXfetch.ts
@@ -1,3 +1,5 @@
+import type { Pinia } from 'pinia'
+
export interface XError {
code: string
message: string
@@ -75,7 +77,7 @@ export async function xfetch(
function clearStore() {
const { $pinia } = useNuxtApp()
- const userStore = useUserStore($pinia)
+ const userStore = useUserStore($pinia as Pinia)
userStore.logout()
navigateTo('/401')
}
diff --git a/app/pages/index.vue b/app/pages/index.vue
index f745ba70..efb292f7 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -1,190 +1,9 @@
-
-
-
Dashboard {{ userRole }}
-
-
-
-
-
-
- Total Pasien Hari Ini
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- from last month
-
-
-
-
-
- Subscriptions
-
-
-
-
-
-
-
-
-
-
-
-
- from last month
-
-
-
-
-
- Sales
-
-
-
-
-
-
-
-
-
-
-
-
- from last month
-
-
-
-
-
- Active Now
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Overview
-
-
-
-
-
-
-
- Recent Sales
-
-
-
-
- {{
- recentSales.name
- .split(' ')
- .map((n) => n[0])
- .join('')
- }}
-
-
-
- {{ recentSales.name }}
-
-
- {{ recentSales.email }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+