WIP ESLint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 12:12:11 +01:00
parent 9a905e83f7
commit 3bf8859ff9
20 changed files with 129 additions and 70 deletions

View File

@ -19,7 +19,7 @@ export function VMSelectIsoInput(p: {
attachedISOs: string[];
onChange: (newVal: string[]) => void;
}): React.ReactElement {
if (!p.attachedISOs && !p.editable) return <></>;
if (p.attachedISOs.length === 0 && !p.editable) return <></>;
return (
<>
@ -27,7 +27,7 @@ export function VMSelectIsoInput(p: {
const iso = p.isoList.find((d) => d.filename === isoName);
return (
<ListItem
key={num}
key={isoName}
secondaryAction={
p.editable && (
<IconButton
@ -69,12 +69,11 @@ export function VMSelectIsoInput(p: {
}
}}
options={p.isoList.map((i) => {
return {
label: `${i.filename} ${filesize(i.size)}`,
value: i.filename,
};
})
}
return {
label: `${i.filename} ${filesize(i.size)}`,
value: i.filename,
};
})}
/>
</>
);