We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e03cc62 commit 6ff3395Copy full SHA for 6ff3395
site/src/modules/templates/TemplateCard/TemplateCard.tsx
@@ -109,14 +109,18 @@ export const TemplateCard: FC<TemplateCardProps> = ({
109
</div>
110
111
<div css={styles.useButtonContainer}>
112
- <Button
113
- component={RouterLink}
114
- onClick={(e) => e.stopPropagation()}
115
- fullWidth
116
- to={`/templates/${template.name}/workspace`}
117
- >
118
- Use template
119
- </Button>
+ {template.deprecated ? (
+ <DeprecatedBadge />
+ ) : (
+ <Button
+ component={RouterLink}
+ onClick={(e) => e.stopPropagation()}
+ fullWidth
+ to={`/templates/${template.name}/workspace`}
120
+ >
121
+ Use template
122
+ </Button>
123
+ )}
124
125
126
);
0 commit comments