mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
feat(routes): clear unused routes
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import { Virgo } from '@toeverything/framework/virgo';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useNavigate, useParams } from 'react-router';
|
||||
import { Virgo, BlockEditor } from '@toeverything/framework/virgo';
|
||||
import { debounce } from '@toeverything/utils';
|
||||
|
||||
import { MuiBox as Box, styled, BaseButton } from '@toeverything/components/ui';
|
||||
import { BaseButton, styled } from '@toeverything/components/ui';
|
||||
import {
|
||||
services,
|
||||
type ReturnUnobserve,
|
||||
TemplateFactory,
|
||||
TemplateMeta,
|
||||
type ReturnUnobserve,
|
||||
} from '@toeverything/datasource/db-service';
|
||||
|
||||
const PlaceholderPanelContainer = styled('div')({
|
||||
@@ -48,7 +46,6 @@ export const PlaceholderPanel = (props: PlaceholderPanelProps) => {
|
||||
y: 0,
|
||||
});
|
||||
const [open, setOpen] = useState(false);
|
||||
// const navigate = useNavigate();
|
||||
|
||||
const ifPageChildrenExist = useCallback(async () => {
|
||||
const rootId = await editor.getRootBlockId();
|
||||
|
||||
Reference in New Issue
Block a user