Fix ESLint issues

This commit is contained in:
2025-05-14 22:04:34 +02:00
parent 91e5d8af31
commit 5aa954dca2
10 changed files with 46 additions and 39 deletions

View File

@ -89,7 +89,7 @@ export function InboxRoute(): React.ReactElement {
<div style={{ display: "flex", flexDirection: "column", flex: 1 }}>
<div style={{ flex: 1, display: "flex", flexDirection: "column" }}>
<AsyncWidget
loadKey={loadKey.current + String(includeAttached)}
loadKey={`${loadKey.current}/${includeAttached}`}
load={load}
errMsg="Failed to load the content of inbox!"
build={() => (
@ -277,7 +277,7 @@ function InboxTable(p: {
setAttachMultipleMovements(undefined);
};
const handlePerformAttachMultiple = (mapping: Array<number | undefined>) => {
const handlePerformAttachMultiple = (mapping: (number | undefined)[]) => {
console.info(attachMultipleEntries, attachMultipleMovements, mapping);
};
@ -392,7 +392,7 @@ function InboxTable(p: {
editable: false,
getActions: (params) => {
return [
<Tooltip title="Attach entry to movement">
<Tooltip key="attach" title="Attach entry to movement">
<GridActionsCellItem
key={`attach-${params.row.id}`}
icon={<SearchIcon />}
@ -447,7 +447,11 @@ function InboxTable(p: {
/>
<span style={{ flex: 1 }}></span>
<Tooltip title="Refresh table">
<IconButton onClick={() => p.onReload(false)}>
<IconButton
onClick={() => {
p.onReload(false);
}}
>
<RefreshIcon />
</IconButton>
</Tooltip>
@ -483,7 +487,7 @@ function InboxTable(p: {
},
columns: {
columnVisibilityModel: {
movement_id: p.showMovements!!,
movement_id: p.showMovements!,
},
},
}}