Explorar el Código

rename drag type

kaori hace 4 años
padre
commit
1ff72c41c6
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 1 - 2
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -112,7 +112,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
 
 
 
   const [{ isDragging }, drag] = useDrag(() => ({
   const [{ isDragging }, drag] = useDrag(() => ({
-    type: 'DND_GROUP',
+    type: 'PAGE_TREE',
     item: { page },
     item: { page },
     collect: monitor => ({
     collect: monitor => ({
       isDragging: !!monitor.isDragging(),
       isDragging: !!monitor.isDragging(),
@@ -218,7 +218,6 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
         </div>
         </div>
       </div>
       </div>
 
 
-
       {isEnableActions && (
       {isEnableActions && (
         <ClosableTextInput
         <ClosableTextInput
           isShown={isNewPageInputShown}
           isShown={isNewPageInputShown}