File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
site/src/components/RichParameterInput Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import { MemoizedMarkdown } from "components/Markdown/Markdown";
10
10
import { Stack } from "components/Stack/Stack" ;
11
11
import { MultiTextField } from "./MultiTextField" ;
12
12
import { ExternalImage } from "components/ExternalImage/ExternalImage" ;
13
+ import { Pill } from "components/Pill/Pill" ;
14
+ import ErrorOutline from "@mui/icons-material/ErrorOutline" ;
13
15
14
16
const isBoolean = ( parameter : TemplateVersionParameter ) => {
15
17
return parameter . type === "bool" ;
@@ -46,11 +48,6 @@ const styles = {
46
48
fontSize : 14 ,
47
49
} ,
48
50
} ) ,
49
- immutableLabel : ( theme ) => ( {
50
- fontSize : 14 ,
51
- color : theme . experimental . roles . warning . fill ,
52
- fontWeight : 500 ,
53
- } ) ,
54
51
optionalLabel : ( theme ) => ( {
55
52
fontSize : 14 ,
56
53
color : theme . palette . text . disabled ,
@@ -127,7 +124,9 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ parameter }) => {
127
124
) }
128
125
{ ! parameter . mutable && (
129
126
< Tooltip title = "This value cannot be modified after the workspace has been created." >
130
- < span css = { styles . immutableLabel } > Immutable*</ span >
127
+ < Pill type = "warning" icon = { < ErrorOutline /> } >
128
+ Immutable
129
+ </ Pill >
131
130
</ Tooltip >
132
131
) }
133
132
</ span >
You can’t perform that action at this time.
0 commit comments