mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-12 07:12:58 +02:00
Updates to general commands
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user