Can change disk bus after disk creation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -17,8 +17,11 @@ export function SelectInput(p: {
|
||||
value?: string;
|
||||
editable: boolean;
|
||||
label?: string;
|
||||
size?: "medium" | "small";
|
||||
options: SelectOption[];
|
||||
onValueChange: (o?: string) => void;
|
||||
disableUnderline?: boolean;
|
||||
disableBottomMargin?: boolean;
|
||||
}): React.ReactElement {
|
||||
if (!p.editable && !p.value) return <></>;
|
||||
|
||||
@ -28,12 +31,18 @@ export function SelectInput(p: {
|
||||
}
|
||||
|
||||
return (
|
||||
<FormControl fullWidth variant="standard" style={{ marginBottom: "15px" }}>
|
||||
<FormControl
|
||||
fullWidth
|
||||
variant="standard"
|
||||
style={{ marginBottom: p.disableBottomMargin ? "0px" : "15px" }}
|
||||
>
|
||||
{p.label && <InputLabel>{p.label}</InputLabel>}
|
||||
<Select
|
||||
{...p}
|
||||
value={p.value ?? ""}
|
||||
label={p.label}
|
||||
onChange={(e) => { p.onValueChange(e.target.value); }}
|
||||
onChange={(e) => {
|
||||
p.onValueChange(e.target.value);
|
||||
}}
|
||||
>
|
||||
{p.options.map((e) => (
|
||||
<MenuItem
|
||||
|
Reference in New Issue
Block a user