mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
move settings page back into modal
This commit is contained in:
@@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
import { Command, CommandPalettePages } from '/@/renderer/features/search/components/command';
|
||||
import { openSettingsModal } from '/@/renderer/features/settings/utils/open-settings-modal';
|
||||
import { AppRoute } from '/@/renderer/router/routes';
|
||||
|
||||
interface GoToCommandsProps {
|
||||
@@ -36,7 +37,7 @@ export const GoToCommands = ({ handleClose, setPages, setQuery }: GoToCommandsPr
|
||||
</Command.Item>
|
||||
<Command.Item
|
||||
onSelect={() => {
|
||||
goTo(AppRoute.SETTINGS);
|
||||
openSettingsModal();
|
||||
}}
|
||||
>
|
||||
{t('page.sidebar.settings', { postProcess: 'titleCase' })}
|
||||
|
||||
Reference in New Issue
Block a user