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