feat: configure sidebar items

This commit is contained in:
Jannat Patel
2024-05-29 17:16:09 +05:30
parent e6d58721f0
commit 1e69ff7de8
13 changed files with 264 additions and 23 deletions

View File

@@ -14,7 +14,7 @@
<span class="grid h-5 w-6 flex-shrink-0 place-items-center">
<component
:is="link.icon"
class="h-5 w-5 stroke-1.5 text-gray-800"
class="h-4 w-4 stroke-1.5 text-gray-800"
/>
</span>
</slot>
@@ -55,7 +55,11 @@ const props = defineProps({
})
function handleClick() {
router.push({ name: props.link.to })
if (props.link.to.includes('/')) {
window.location.href = props.link.to
} else {
router.push({ name: props.link.to })
}
}
let isActive = computed(() => {