Browse Source

docs: fix typo dragable to draggable

pull/31593/head
Kim, Harim 3 years ago
committed by GitHub
parent
commit
71af741173
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/table/demo/drag-sorting.md

6
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,
},
};

Loading…
Cancel
Save