Resolve list arrow movement IO-604
This commit is contained in:
@@ -4,12 +4,13 @@ export default function FormListMoveArrows({ move, index, total }) {
|
||||
const upDisabled = index === 0;
|
||||
const downDisabled = index === total - 1;
|
||||
|
||||
console.log(index);
|
||||
const handleUp = () => {
|
||||
move(index, index - 1);
|
||||
};
|
||||
|
||||
const handleDown = () => {
|
||||
move(index, index - 1);
|
||||
move(index, index + 1);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user