[PUI] fix a few sonarcloud warnings (#8133)

* fix a few code issues

* fix common sonarcloud issues

* more small fixes
This commit is contained in:
Matthias Mair
2024-09-17 14:16:29 +10:00
committed by GitHub
parent 45aab46db3
commit 7c937fa283
53 changed files with 211 additions and 229 deletions
@@ -197,11 +197,11 @@ function LineItemFormRow({
props,
record,
statuses
}: {
}: Readonly<{
props: TableFieldRowProps;
record: any;
statuses: any;
}) {
}>) {
// Barcode Modal state
const [opened, { open, close }] = useDisclosure(false, {
onClose: () => props.changeFn(props.idx, 'barcode', undefined)
@@ -263,7 +263,7 @@ function LineItemFormRow({
// Barcode value
const [barcodeInput, setBarcodeInput] = useState<any>('');
const [barcode, setBarcode] = useState<String | undefined>(undefined);
const [barcode, setBarcode] = useState<string | undefined>(undefined);
// Change form value when state is altered
useEffect(() => {