Start to build VM page

This commit is contained in:
2023-10-17 18:11:31 +02:00
parent fcf66e3e93
commit 62364594c9
8 changed files with 221 additions and 148 deletions

View File

@ -6,15 +6,16 @@ export function CheckboxInput(p: {
checked: boolean | undefined;
onValueChange: (v: boolean) => void;
}): React.ReactElement {
if (!p.editable && p.checked)
return <Typography variant="body2">{p.label}</Typography>;
//if (!p.editable && p.checked)
// return <Typography variant="body2">{p.label}</Typography>;
if (!p.editable) return <></>;
//if (!p.editable) return <></>;
return (
<FormControlLabel
control={
<Checkbox
disabled={!p.editable}
checked={p.checked}
onChange={(e) => p.onValueChange(e.target.checked)}
/>