sprintify-ui 0.0.69 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -62,8 +62,6 @@ const props = defineProps({
62
62
 
63
63
  const emit = defineEmits(['click']);
64
64
 
65
- const router = useRouter();
66
-
67
65
  async function onClick() {
68
66
  emit('click');
69
67
  }
@@ -73,11 +71,9 @@ const routeActive = computed((): boolean => {
73
71
  return false;
74
72
  }
75
73
 
76
- const itemRoute = router.resolve(props.item.to);
74
+ const link = useLink({ to: props.item.to });
77
75
 
78
- return router.currentRoute.value.matched.some((route) => {
79
- return itemRoute.path == route.path;
80
- });
76
+ return link.isActive.value;
81
77
  });
82
78
 
83
79
  const showSubActions = computed((): boolean => {