mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
refactor(editor): implement uni-component in AFFiNE (#10747)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { ConfirmModalProvider, PromptModalProvider } from '@affine/component';
|
||||
import {
|
||||
ConfirmModalProvider,
|
||||
PromptModalProvider,
|
||||
uniReactRoot,
|
||||
} from '@affine/component';
|
||||
import { ProviderComposer } from '@affine/component/provider-composer';
|
||||
import { ThemeProvider } from '@affine/core/components/theme-provider';
|
||||
import type { createStore } from 'jotai';
|
||||
@@ -25,6 +29,7 @@ export function AffineContext(props: AffineContextProps) {
|
||||
)}
|
||||
>
|
||||
{props.children}
|
||||
<uniReactRoot.Root />,
|
||||
</ProviderComposer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user