Browse Source

docs: fix the wrong way to import react-dnd-html5-backend (#25151)

* Fix the wrong way to import react-dnd-html5-backend

* chore: update react-dnd

* Update custom-tab-bar-node.md
pull/25699/head
njzy 4 years ago
committed by GitHub
parent
commit
e13bb39c1d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/demo/drag-sorting.md
  2. 2
      components/tabs/demo/custom-tab-bar-node.md
  3. 4
      package.json

2
components/table/demo/drag-sorting.md

@ -16,7 +16,7 @@ By using custom components, we can integrate table with react-dnd to implement d
```jsx
import { Table } from 'antd';
import { DndProvider, DragSource, DropTarget } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { HTML5Backend } from 'react-dnd-html5-backend';
import update from 'immutability-helper';
let dragingIndex = -1;

2
components/tabs/demo/custom-tab-bar-node.md

@ -16,7 +16,7 @@ Use `react-dnd` to make tabs draggable.
```jsx
import { Tabs } from 'antd';
import { DndProvider, DragSource, DropTarget } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { HTML5Backend } from 'react-dnd-html5-backend';
const { TabPane } = Tabs;

4
package.json

@ -217,8 +217,8 @@
"react": "^16.5.2",
"react-color": "^2.17.3",
"react-copy-to-clipboard": "^5.0.1",
"react-dnd": "^10.0.2",
"react-dnd-html5-backend": "^10.0.2",
"react-dnd": "^11.1.1",
"react-dnd-html5-backend": "^11.1.1",
"react-dom": "^16.5.2",
"react-github-button": "^0.1.11",
"react-helmet-async": "^1.0.4",

Loading…
Cancel
Save