mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-03 03:11:40 +00:00
Updates to general commands
This commit is contained in:
parent
c296927bbb
commit
cf9ed31dfd
3 changed files with 73 additions and 8 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue