Fix ESLint issues
This commit is contained in:
parent
1e8064946a
commit
e55b99b264
@ -377,7 +377,7 @@ function MovementsTable(p: {
|
||||
variant="standard"
|
||||
size="small"
|
||||
value={labelFilter}
|
||||
onChange={(e) => setLabelFilter(e.target.value)}
|
||||
onChange={(e) => { setLabelFilter(e.target.value); }}
|
||||
style={{ padding: "0px", flex: 1 }}
|
||||
/>
|
||||
<span style={{ flex: 1 }}></span>
|
||||
|
@ -38,7 +38,7 @@ export function BackupRoute(): React.ReactElement {
|
||||
}
|
||||
importWarning="Existing data will be COMPLETELY ERASED, before starting import!"
|
||||
exportURL={BackupApi.ZIPExportURL}
|
||||
onImport={BackupApi.ZIPImport}
|
||||
onImport={(f) => BackupApi.ZIPImport(f)}
|
||||
acceptedFiles={"application/zip"}
|
||||
/>
|
||||
|
||||
@ -62,7 +62,7 @@ export function BackupRoute(): React.ReactElement {
|
||||
}
|
||||
importWarning="Existing data will not be touched, movement will be inserted in newly created accounts."
|
||||
exportURL={BackupApi.FinancesManagerExportURL}
|
||||
onImport={BackupApi.FinancesManagerImport}
|
||||
onImport={(f) => BackupApi.FinancesManagerImport(f)}
|
||||
/>
|
||||
|
||||
{/* Excel */}
|
||||
@ -100,9 +100,11 @@ function ImportExportModal(p: {
|
||||
fileEl.click();
|
||||
|
||||
// Wait for a file to be chosen
|
||||
await new Promise((res, _rej) =>
|
||||
fileEl.addEventListener("change", () => res(null))
|
||||
);
|
||||
await new Promise((res) => {
|
||||
fileEl.addEventListener("change", () => {
|
||||
res(null);
|
||||
});
|
||||
});
|
||||
|
||||
if (fileEl.files?.length === 0) return;
|
||||
|
||||
|
@ -113,7 +113,7 @@ export function NewMovementWidget(
|
||||
>
|
||||
<UploadedFileWidget file_id={file.id} />
|
||||
</span>
|
||||
<IconButton onClick={() => setFile(undefined)}>
|
||||
<IconButton onClick={() => { setFile(undefined); }}>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user