Skip to content

Commit

Permalink
Move BlockDropZone react hook and update docs (#22619)
Browse files Browse the repository at this point in the history
* Move from block-drop-zone to use-block-drop-zone and update docs

* Update docs, removing mention of filter that is no longer supported
  • Loading branch information
talldan authored May 27, 2020
1 parent 176cd22 commit 3c01f82
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
30 changes: 0 additions & 30 deletions packages/block-editor/src/components/block-drop-zone/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useRef, forwardRef } from '@wordpress/element';
import BlockListBlock from './block';
import BlockListAppender from '../block-list-appender';
import RootContainer from './root-container';
import useBlockDropZone from '../block-drop-zone';
import useBlockDropZone from '../use-block-drop-zone';

/**
* If the block count exceeds the threshold, we disable the reordering animation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
useBlockDropZone
===========

`useBlockDropZone` is a React hook used to specify a drop zone for a block. This drop zone supports the drag and drop of media into the editor.

0 comments on commit 3c01f82

Please sign in to comment.