Updates to general commands

This commit is contained in:
jeffvli 2023-05-19 00:21:01 -07:00 committed by Jeff
parent c296927bbb
commit cf9ed31dfd
3 changed files with 73 additions and 8 deletions

View file

@ -37,8 +37,8 @@ export const HomeCommands = ({
const handleSearch = useCallback(() => {
navigate(AppRoute.SEARCH);
setQuery('');
handleClose();
setQuery('');
}, [handleClose, navigate, setQuery]);
return (
@ -48,6 +48,9 @@ export const HomeCommands = ({
<Command.Item onSelect={() => setPages([...pages, CommandPalettePages.GO_TO])}>
Go to page...
</Command.Item>
<Command.Item onSelect={() => setPages([...pages, CommandPalettePages.MANAGE_SERVERS])}>
Server commands...
</Command.Item>
{query !== '' && (
<Command.Item
value="Search"