- the great reformat

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-06 18:20:58 -05:00
parent 30c530bcc4
commit e83badb454
912 changed files with 108516 additions and 107493 deletions

View File

@@ -1,22 +1,23 @@
import { DownOutlined, UpOutlined } from "@ant-design/icons";
import { Space } from "antd";
import {DownOutlined, UpOutlined} from "@ant-design/icons";
import {Space} from "antd";
import React from "react";
export default function FormListMoveArrows({ move, index, total }) {
const upDisabled = index === 0;
const downDisabled = index === total - 1;
const handleUp = () => {
move(index, index - 1);
};
export default function FormListMoveArrows({move, index, total}) {
const upDisabled = index === 0;
const downDisabled = index === total - 1;
const handleDown = () => {
move(index, index + 1);
};
const handleUp = () => {
move(index, index - 1);
};
return (
<Space direction="vertical">
<UpOutlined disabled={upDisabled} onClick={handleUp} />
<DownOutlined disabled={downDisabled} onClick={handleDown} />
</Space>
);
const handleDown = () => {
move(index, index + 1);
};
return (
<Space direction="vertical">
<UpOutlined disabled={upDisabled} onClick={handleUp}/>
<DownOutlined disabled={downDisabled} onClick={handleDown}/>
</Space>
);
}