mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
chore: removed debug code
This commit is contained in:
parent
9091f74b8a
commit
0f25d32d41
@ -33,12 +33,7 @@ const SortableSelect = SortableContainer(ReactSelect)
|
|||||||
const Select = ({ placeholder, options, values, setValues, handleChange, handleTouch }:SelectProps):JSX.Element => {
|
const Select = ({ placeholder, options, values, setValues, handleChange, handleTouch }:SelectProps):JSX.Element => {
|
||||||
const onSortEnd = ({ oldIndex, newIndex }) => {
|
const onSortEnd = ({ oldIndex, newIndex }) => {
|
||||||
const newValue = arrayMove(values, oldIndex, newIndex)
|
const newValue = arrayMove(values, oldIndex, newIndex)
|
||||||
console.log(newValue)
|
|
||||||
setValues(newValue)
|
setValues(newValue)
|
||||||
console.log(
|
|
||||||
'Values sorted:',
|
|
||||||
newValue.map(i => i.value)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
return <SortableSelect useDragHandle axis='xy' distance={4} getHelperDimensions={({ node }) => node.getBoundingClientRect()} onSortEnd={onSortEnd}
|
return <SortableSelect useDragHandle axis='xy' distance={4} getHelperDimensions={({ node }) => node.getBoundingClientRect()} onSortEnd={onSortEnd}
|
||||||
// select props
|
// select props
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user