Browse Source
docs: fix typo dragable to draggable
pull/31593/head
Kim, Harim
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
components/table/demo/drag-sorting.md
|
|
@ -20,9 +20,9 @@ import { DndProvider, useDrag, useDrop } from 'react-dnd'; |
|
|
|
import { HTML5Backend } from 'react-dnd-html5-backend'; |
|
|
|
import update from 'immutability-helper'; |
|
|
|
|
|
|
|
const type = 'DragableBodyRow'; |
|
|
|
const type = 'DraggableBodyRow'; |
|
|
|
|
|
|
|
const DragableBodyRow = ({ index, moveRow, className, style, ...restProps }) => { |
|
|
|
const DraggableBodyRow = ({ index, moveRow, className, style, ...restProps }) => { |
|
|
|
const ref = useRef(); |
|
|
|
const [{ isOver, dropClassName }, drop] = useDrop({ |
|
|
|
accept: type, |
|
|
@ -101,7 +101,7 @@ const DragSortingTable: React.FC = () => { |
|
|
|
|
|
|
|
const components = { |
|
|
|
body: { |
|
|
|
row: DragableBodyRow, |
|
|
|
row: DraggableBodyRow, |
|
|
|
}, |
|
|
|
}; |
|
|
|
|
|
|
|