8000 [formatting] formats document · codemic-pl/react-sortablejs@896a4bd · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 896a4bd

Browse files
author
Wayne Van Son
committed
[formatting] formats document
1 parent 05708d6 commit 896a4bd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/react-sortable.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Instead, mount it with "Sortable.mount(new MultiDrag())"
6363
6464
Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
6565
`);
66-
}
66+
}
6767

6868
componentDidMount() {
6969
if (this.ref.current === null) return;
@@ -249,9 +249,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
249249
switch (mode) {
250250
case "normal":
251251
const item = {
252-
element: evt.item,
252+
element: evt.item,
253253
newIndex: evt.newIndex!,
254-
oldIndex: evt.oldIndex!,
254+
oldIndex: evt.oldIndex!,
255255
parentElement: evt.from
256256
};
257257
custom = [item];
@@ -264,8 +264,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
264264
...parentElement
265265
};
266266
const swap: Input = {
267-
element: evt.swapItem!,
268-
oldIndex: evt.newIndex!,
267+
element: evt.swapItem!,
268+
oldIndex: evt.newIndex!,
269269
newIndex: evt.oldIndex!,
270270
...parentElement
271271
};
@@ -280,7 +280,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
280280
}));
281281
break;
282282
}
283-
const { list, setList } = this.props;
283+
const { list, setList } = this.props;
284284
const customs = createNormalized(custom, list);
285285
handleDOMChanges(customs);
286286
const newList = handleStateChanges(customs, list);
@@ -303,7 +303,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
303303
newList[evt.oldIndex!].chosen = true;
304304
setList(newList, this.sortable, store);
305305
}
306-
306+
307307
onUnchoose(evt: SortableEvent) {
308308
const { list, setList } = this.props;
309309
const newList = [...list];
@@ -332,7 +332,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
332332
}
333333
}
334334

335-
// everything below this point can be removes
335+
// everything below this point can be removes
336336
// once @types has been merged. PR submited
337337
interface MultiIndices {
338338
multiDragElement: HTMLElement;

0 commit comments

Comments
 (0)
0