fix(ui): fix missing button imports
[e-mobility-charging-stations-simulator.git] / ui / web / src / router / index.ts
index 1015d92361787bd1405a90a1f38408cfad7acb43..076ca286832d493addb76883abb332c0c6ffc871 100644 (file)
@@ -1,17 +1,15 @@
-import { type RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
+import { createRouter, createWebHistory } from 'vue-router'
 import ChargingStationsView from '@/views/ChargingStationsView.vue'
 
-const routes: RouteRecordRaw[] = [
-  {
-    path: '/',
-    name: 'charging-stations',
-    component: ChargingStationsView
-  }
-]
-
-const router = createRouter({
+export const router = createRouter({
   history: createWebHistory(),
-  routes
+  routes: [
+    {
+      path: '/',
+      name: 'charging-stations',
+      components: {
+        default: ChargingStationsView
+      }
+    }
+  ]
 })
-
-export default router