File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 22import  { computed , ref  } from  ' vue' 
33import  { useRoute  } from  ' vue-router' 
44import  { useStorage  } from  ' @vueuse/core' 
5+ import  type  { NavigationMenuItem  } from  ' @nuxt/ui' 
56
67const =  useToast ()
78const =  useRoute ()
@@ -71,7 +72,7 @@ const links = [[{
7172  icon: ' i-lucide-info'  
7273  to: ' https://github.com/nuxt/ui-pro'  
7374  target: ' _blank'  
74- }]] 
75+ }]]  satisfies   NavigationMenuItem [][]  
7576
7677const =  computed (() =>  [{
7778  id: ' links'  
Original file line number Diff line number Diff line change 11<script  setup lang="ts">
22import  { ref , computed  } from  ' vue' 
3+ import  type  { DropdownMenuItem  } from  ' @nuxt/ui' 
34
45defineProps <{
56  collapsed? :  boolean  
@@ -26,7 +27,7 @@ const teams = ref([{
2627}]) 
2728const =  ref (teams .value [0 ])
2829
29- const =  computed (() =>  {
30+ const =  computed < DropdownMenuItem [][]> (() =>  {
3031  return  [teams .value .map (team  =>  ({ 
3132    ... team , 
3233    onSelect() { 
Original file line number Diff line number Diff line change 11<script  setup lang="ts">
22import  type  { Member  } from  ' ../../types' 
3+ import  type  { DropdownMenuItem  } from  ' @nuxt/ui' 
34
45defineProps <{
56  members:  Member [] 
@@ -12,7 +13,7 @@ const items = [{
1213  label: ' Remove member'  
1314  color: ' error' as  const , 
1415  onSelect : () =>  console .log (' Remove member'  
15- }] 
16+ }]  satisfies   DropdownMenuItem []  
1617script >
1718
1819<template >
Original file line number Diff line number Diff line change 11<script  setup lang="ts">
22import  { ref , shallowRef  } from  ' vue' 
33import  { sub  } from  ' date-fns' 
4+ import  type  { DropdownMenuItem  } from  ' @nuxt/ui' 
45import  { useDashboard  } from  ' ../composables/useDashboard' 
56import  type  { Period , Range  } from  ' ../types' 
67
@@ -14,7 +15,7 @@ const items = [[{
1415  label: ' New customer'  
1516  icon: ' i-lucide-user-plus'  
1617  to: ' /customers'  
17- }]] 
18+ }]]  satisfies   DropdownMenuItem [][]  
1819
1920const =  shallowRef <Range >({
2021  start: sub (new  Date (), { days: 14  }), 
Original file line number Diff line number Diff line change 11<script  setup lang="ts">
2+ import  type  { NavigationMenuItem  } from  ' @nuxt/ui' 
3+ 
24const =  [[{
35  label: ' General'  
46  icon: ' i-lucide-user'  
@@ -26,7 +28,7 @@ const links = [[{
2628  icon: ' i-lucide-shopping-cart'  
2729  to: ' https://ui.nuxt.com/pro/purchase'  
2830  target: ' _blank'  
29- }]] 
31+ }]]  satisfies   NavigationMenuItem [][]  
3032script >
3133
3234<template >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments