Move to inline

This commit is contained in:
Terry Sutton committed 2023-04-14 09:21:01 -02:30
1 parent 56ec054445
commit d4391925a2
1 file changed
+4 -6
@@ -65,11 +65,6 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
useCommandMenu()
const showCommandInput = !currentPage || !CHAT_ROUTES.includes(currentPage)
const handleRouteChange = (url: string) => {
router.push(url)
setIsOpen(false)
}
return (
<>
<CommandDialog
@@ -213,7 +208,10 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandItem
key={item.url}
type="link"
onSelect={() => handleRouteChange(itemUrl)}
onSelect={() => {
router.push(item.url)
setIsOpen(false)
}}
>
<IconArrowRight className="text-scale-900" />
<CommandLabel>