mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 10:42:00 +03:00
chore: set kanban RefPageProvider
This commit is contained in:
parent
dcdc7f8862
commit
4a99080860
@ -4,12 +4,14 @@ import { SceneKanbanContext } from './context';
|
|||||||
import { CardContainerWrapper } from './dndable/wrapper/CardContainerWrapper';
|
import { CardContainerWrapper } from './dndable/wrapper/CardContainerWrapper';
|
||||||
import type { ComponentType } from 'react';
|
import type { ComponentType } from 'react';
|
||||||
import type { CreateView } from '@toeverything/framework/virgo';
|
import type { CreateView } from '@toeverything/framework/virgo';
|
||||||
|
import { RefPageProvider } from './RefPage';
|
||||||
|
|
||||||
export const SceneKanban: ComponentType<CreateView> = withKanban<CreateView>(
|
export const SceneKanban: ComponentType<CreateView> = withKanban<CreateView>(
|
||||||
({ editor, block }) => {
|
({ editor, block }) => {
|
||||||
const { kanban } = useKanban();
|
const { kanban } = useKanban();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<RefPageProvider>
|
||||||
<SceneKanbanContext.Provider value={{ editor, block }}>
|
<SceneKanbanContext.Provider value={{ editor, block }}>
|
||||||
<CardContainerWrapper
|
<CardContainerWrapper
|
||||||
dataSource={kanban}
|
dataSource={kanban}
|
||||||
@ -28,6 +30,7 @@ export const SceneKanban: ComponentType<CreateView> = withKanban<CreateView>(
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</SceneKanbanContext.Provider>
|
</SceneKanbanContext.Provider>
|
||||||
|
</RefPageProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user