Skip to content

Commit ae1890d

Browse files
committed
Use pill instead of text
1 parent 49fab93 commit ae1890d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

site/src/components/RichParameterInput/RichParameterInput.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { MemoizedMarkdown } from "components/Markdown/Markdown";
1010
import { Stack } from "components/Stack/Stack";
1111
import { MultiTextField } from "./MultiTextField";
1212
import { ExternalImage } from "components/ExternalImage/ExternalImage";
13+
import { Pill } from "components/Pill/Pill";
14+
import ErrorOutline from "@mui/icons-material/ErrorOutline";
1315

1416
const isBoolean = (parameter: TemplateVersionParameter) => {
1517
return parameter.type === "bool";
@@ -46,11 +48,6 @@ const styles = {
4648
fontSize: 14,
4749
},
4850
}),
49-
immutableLabel: (theme) => ({
50-
fontSize: 14,
51-
color: theme.experimental.roles.warning.fill,
52-
fontWeight: 500,
53-
}),
5451
optionalLabel: (theme) => ({
5552
fontSize: 14,
5653
color: theme.palette.text.disabled,
@@ -127,7 +124,9 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ parameter }) => {
127124
)}
128125
{!parameter.mutable && (
129126
<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>
131130
</Tooltip>
132131
)}
133132
</span>

0 commit comments

Comments
 (0)