mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(core): open restore history confirm modal with hook (#6343)
This commit is contained in:
@@ -5,6 +5,8 @@ import { Provider } from 'jotai';
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { ConfirmModalProvider } from '../../ui/modal';
|
||||
|
||||
export type AffineContextProps = PropsWithChildren<{
|
||||
store?: ReturnType<typeof createStore>;
|
||||
}>;
|
||||
@@ -17,6 +19,7 @@ export function AffineContext(props: AffineContextProps) {
|
||||
[
|
||||
<Provider key="JotaiProvider" store={props.store} />,
|
||||
<ThemeProvider key="ThemeProvider" />,
|
||||
<ConfirmModalProvider key="ConfirmModalProvider" />,
|
||||
].filter(Boolean),
|
||||
[props.store]
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user