There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: context not found
lawvs833fcae11657
diff --git a/libs/components/editor-core/src/ref-page/ModalPage.tsx b/libs/components/editor-core/src/ref-page/ModalPage.tsxindex 276d5984d6..52e1d6554f 100644--- a/libs/components/editor-core/src/ref-page/ModalPage.tsx+++ b/libs/components/editor-core/src/ref-page/ModalPage.tsx@@ -1,7 +1,6 @@import { MuiBackdrop, styled, useTheme } from '@toeverything/components/ui';import { createContext, ReactNode, useContext, useState } from 'react';import { createPortal } from 'react-dom';-import { useEditor } from '../Contexts';import { RenderBlock } from '../render-block';const Dialog = styled('div')({@@ -44,8 +43,6 @@ const Modal = ({ open, children }: { open: boolean; children?: ReactNode }) => {};const ModalPage = ({ blockId }: { blockId: string | null }) => {- const { editor } = useEditor();-return (<Modal open={!!blockId}>{blockId && <RenderBlock blockId={blockId} />}