fix: find the lost setting entry of quick search
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
import { FC, SVGProps } from 'react';
|
import { FC, SVGProps } from 'react';
|
||||||
import { AllPagesIcon, FavouritesIcon, TrashIcon } from '@blocksuite/icons';
|
import {
|
||||||
|
AllPagesIcon,
|
||||||
|
FavouritesIcon,
|
||||||
|
TrashIcon,
|
||||||
|
SettingsIcon,
|
||||||
|
} from '@blocksuite/icons';
|
||||||
import { useTranslation } from '@affine/i18n';
|
import { useTranslation } from '@affine/i18n';
|
||||||
|
|
||||||
export const useSwitchToConfig = (
|
export const useSwitchToConfig = (
|
||||||
@@ -23,6 +28,13 @@ export const useSwitchToConfig = (
|
|||||||
: '',
|
: '',
|
||||||
icon: FavouritesIcon,
|
icon: FavouritesIcon,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('Settings'),
|
||||||
|
href: currentWorkspaceId
|
||||||
|
? `/workspace/${currentWorkspaceId}/setting`
|
||||||
|
: '',
|
||||||
|
icon: SettingsIcon,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t('Trash'),
|
title: t('Trash'),
|
||||||
href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/trash` : '',
|
href: currentWorkspaceId ? `/workspace/${currentWorkspaceId}/trash` : '',
|
||||||
|
|||||||
Reference in New Issue
Block a user