File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
modules/workspaces/DynamicParameter Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import type {
19
19
AutofillBuildParameter ,
20
20
AutofillSource ,
21
21
} from "utils/richParameters" ;
22
- import { MultiTextField } from "./MultiTextField " ;
22
+ import { TagInput } from "../TagInput/TagInput " ;
23
23
24
24
const isBoolean = ( parameter : TemplateVersionParameter ) => {
25
25
return parameter . type === "bool" ;
@@ -372,7 +372,7 @@ const RichParameterField: FC<RichParameterInputProps> = ({
372
372
}
373
373
374
374
return (
375
- < MultiTextField
375
+ < TagInput
376
376
id = { parameter . name }
377
377
data-testid = "parameter-field-list-of-string"
378
378
label = { props . label as string }
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ import Chip from "@mui/material/Chip";
2
2
import FormHelperText from "@mui/material/FormHelperText" ;
3
3
import { type FC , useId , useMemo } from "react" ;
4
4
5
- export type MultiTextFieldProps = {
5
+ export type TagInputProps = {
6
6
label : string ;
7
7
id ?: string ;
8
8
values : string [ ] ;
9
9
onChange : ( values : string [ ] ) => void ;
10
10
} ;
11
11
12
- export const MultiTextField : FC < MultiTextFieldProps > = ( {
12
+ export const TagInput : FC < TagInputProps > = ( {
13
13
label,
14
14
id,
15
15
values,
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import {
15
15
type Option ,
16
16
} from "components/MultiSelectCombobox/MultiSelectCombobox" ;
17
17
import { RadioGroup , RadioGroupItem } from "components/RadioGroup/RadioGroup" ;
18
- import { MultiTextField } from "components/RichParameterInput/MultiTextField" ;
19
18
import {
20
19
Select ,
21
20
SelectContent ,
@@ -25,6 +24,7 @@ import {
25
24
} from "components/Select/Select" ;
26
25
import { Slider } from "components/Slider/Slider" ;
27
26
import { Switch } from "components/Switch/Switch" ;
27
+ import { TagInput } from "components/TagInput/TagInput" ;
28
28
import { Textarea } from "components/Textarea/Textarea" ;
29
29
import {
30
30
Tooltip ,
@@ -250,7 +250,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
250
250
const values = parseStringArrayValue ( value ) ;
251
251
252
252
return (
253
- < MultiTextField
253
+ < TagInput
254
254
id = { parameter . name }
255
255
label = { parameter . display_name || parameter . name }
256
256
values = { values }
You can’t perform that action at this time.
0 commit comments