Can create NAT networks
This commit is contained in:
@ -1,9 +1,16 @@
|
||||
import { FormControl, InputLabel, MenuItem, Select } from "@mui/material";
|
||||
import {
|
||||
FormControl,
|
||||
InputLabel,
|
||||
MenuItem,
|
||||
Select,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import { TextInput } from "./TextInput";
|
||||
|
||||
export interface SelectOption {
|
||||
value?: string;
|
||||
label: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export function SelectInput(p: {
|
||||
@ -33,7 +40,18 @@ export function SelectInput(p: {
|
||||
value={e.value}
|
||||
style={{ fontStyle: e.value === undefined ? "italic" : undefined }}
|
||||
>
|
||||
{e.label}
|
||||
<div>
|
||||
{e.label}
|
||||
{e.description && (
|
||||
<Typography
|
||||
component={"div"}
|
||||
variant="caption"
|
||||
style={{ whiteSpace: "normal" }}
|
||||
>
|
||||
{e.description}
|
||||
</Typography>
|
||||
)}
|
||||
</div>
|
||||
</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
|
Reference in New Issue
Block a user