File tree 1 file changed +10
-9
lines changed
site/src/components/ParameterInput
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
import FormControlLabel from "@material-ui/core/FormControlLabel"
2
+ import MenuItem from "@material-ui/core/MenuItem"
2
3
import Radio from "@material-ui/core/Radio"
3
4
import RadioGroup from "@material-ui/core/RadioGroup"
4
5
import { makeStyles } from "@material-ui/core/styles"
@@ -53,23 +54,23 @@ const ParameterField: React.FC<React.PropsWithChildren<ParameterInputProps>> = (
53
54
} ) => {
54
55
if ( schema . validation_contains && schema . validation_contains . length > 0 ) {
55
56
return (
56
- < RadioGroup
57
+ < TextField
57
58
id = { schema . name }
59
+ size = "small"
58
60
defaultValue = { schema . default_source_value }
61
+ disabled = { disabled }
59
62
onChange = { ( event ) => {
60
63
onChange ( event . target . value )
61
64
} }
65
+ select
66
+ fullWidth
62
67
>
63
68
{ schema . validation_contains . map ( ( item ) => (
64
- < FormControlLabel
65
- disabled = { disabled }
66
- key = { item }
67
- value = { item }
68
- control = { < Radio color = "primary" size = "small" disableRipple /> }
69
- label = { item }
70
- />
69
+ < MenuItem key = { item } value = { item } >
70
+ { item }
71
+ </ MenuItem >
71
72
) ) }
72
- </ RadioGroup >
73
+ </ TextField >
73
74
)
74
75
}
75
76
You can’t perform that action at this time.
0 commit comments