File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react'
22import { useNavigate } from '@tanstack/react-router'
33import {
44 IconArrowRightDashed ,
5+ IconChevronRight ,
56 IconDeviceLaptop ,
67 IconMoon ,
78 IconSun ,
@@ -60,16 +61,16 @@ export function CommandMenu() {
6061
6162 return navItem . items ?. map ( ( subItem , i ) => (
6263 < CommandItem
63- key = { `${ subItem . url } -${ i } ` }
64- value = { subItem . title }
64+ key = { `${ navItem . title } - ${ subItem . url } -${ i } ` }
65+ value = { ` ${ navItem . title } - ${ subItem . url } ` }
6566 onSelect = { ( ) => {
6667 runCommand ( ( ) => navigate ( { to : subItem . url } ) )
6768 } }
6869 >
6970 < div className = 'mr-2 flex h-4 w-4 items-center justify-center' >
7071 < IconArrowRightDashed className = 'text-muted-foreground/80 size-2' />
7172 </ div >
72- { subItem . title }
73+ { navItem . title } < IconChevronRight /> { subItem . title }
7374 </ CommandItem >
7475 ) )
7576 } ) }
You can’t perform that action at this time.
0 commit comments