chore: remove unused code

This commit is contained in:
tzhangchi
2023-01-14 10:12:38 +08:00
parent af23591541
commit c7c8ea7103
@@ -7,8 +7,6 @@ import { useRouter } from 'next/router';
import { Page as PageStore, Workspace } from '@blocksuite/store';
import { PageLoading } from '@/components/loading';
import { useTranslation } from '@affine/i18n';
const DynamicBlocksuite = dynamic(() => import('@/components/editor'), {
ssr: false,
});
@@ -18,7 +16,7 @@ const Page: NextPageWithLayout = () => {
const { dataCenter } = useAppState();
const router = useRouter();
const [loaded, setLoaded] = useState(false);
const { t } = useTranslation();
useEffect(() => {
dataCenter
.loadPublicWorkspace(router.query.workspaceId as string)