cleanup routes names

This commit is contained in:
Sirttas
2026-05-31 18:33:35 +02:00
parent d7bae268da
commit 1358aaa705
10 changed files with 43 additions and 22 deletions
+2 -1
View File
@@ -2,11 +2,12 @@
import { computed } from 'vue';
import { RouterView, useRoute } from 'vue-router';
import { Sidebar } from './sidebar';
import { routeNames } from '@/routes';
const route = useRoute();
const hideSidebar = computed(() => {
return route.name === 'callback' || route.name === 'about';
return route.name === routeNames.callback || route.name === routeNames.about;
});
</script>