refact(hook): remove afterOnNodeDragOver

This commit is contained in:
austaras
2022-08-04 16:04:52 +08:00
committed by Austaras
parent 4b81cdbf27
commit c63d5da4df
16 changed files with 48 additions and 110 deletions
@@ -3,7 +3,7 @@ import {
RenderBlock,
useCurrentView,
useOnSelect,
WrapperWithPendantAndDragDrop,
BlockPendantProvider,
} from '@toeverything/components/editor-core';
import { styled } from '@toeverything/components/ui';
import type {
@@ -128,9 +128,9 @@ export const withTreeViewChildren = (
selected={isSelect}
className={Wrapper.toString()}
>
<WrapperWithPendantAndDragDrop editor={editor} block={block}>
<BlockPendantProvider block={block}>
<div>{creator(props)}</div>
</WrapperWithPendantAndDragDrop>
</BlockPendantProvider>
{collapsed && (
<CollapsedNode