mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
chore: remove unused code
This commit is contained in:
@@ -7,8 +7,6 @@ import { useRouter } from 'next/router';
|
|||||||
import { Page as PageStore, Workspace } from '@blocksuite/store';
|
import { Page as PageStore, Workspace } from '@blocksuite/store';
|
||||||
import { PageLoading } from '@/components/loading';
|
import { PageLoading } from '@/components/loading';
|
||||||
|
|
||||||
import { useTranslation } from '@affine/i18n';
|
|
||||||
|
|
||||||
const DynamicBlocksuite = dynamic(() => import('@/components/editor'), {
|
const DynamicBlocksuite = dynamic(() => import('@/components/editor'), {
|
||||||
ssr: false,
|
ssr: false,
|
||||||
});
|
});
|
||||||
@@ -18,7 +16,7 @@ const Page: NextPageWithLayout = () => {
|
|||||||
const { dataCenter } = useAppState();
|
const { dataCenter } = useAppState();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const [loaded, setLoaded] = useState(false);
|
const [loaded, setLoaded] = useState(false);
|
||||||
const { t } = useTranslation();
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dataCenter
|
dataCenter
|
||||||
.loadPublicWorkspace(router.query.workspaceId as string)
|
.loadPublicWorkspace(router.query.workspaceId as string)
|
||||||
|
|||||||
Reference in New Issue
Block a user