add back the deprecation triangle on cards too
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -120,7 +120,8 @@ const DeprecationWarning = () => {
|
||||
|
||||
const Title = (
|
||||
<Typography style={{ padding: 10, maxWidth: 300 }}>
|
||||
This template syntax is deprecated. Click for more info.
|
||||
This template uses a syntax that has been deprecated, and should be
|
||||
migrated to a newer syntax. Click for more info.
|
||||
</Typography>
|
||||
);
|
||||
|
||||
@@ -128,7 +129,7 @@ const DeprecationWarning = () => {
|
||||
<div className={styles.deprecationIcon}>
|
||||
<Tooltip title={Title}>
|
||||
<Link
|
||||
href="https://backstage.io/docs/features/software-templates/migrating-from-v1alpha1-to-v1beta2"
|
||||
href="https://backstage.io/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3"
|
||||
className={styles.link}
|
||||
>
|
||||
<WarningIcon />
|
||||
|
||||
@@ -87,6 +87,7 @@ export const TemplateList = ({
|
||||
<Card
|
||||
key={stringifyEntityRef(template)}
|
||||
template={template as TemplateEntityV1beta2}
|
||||
deprecated={template.apiVersion === 'backstage.io/v1beta2'}
|
||||
/>
|
||||
))}
|
||||
</ItemCardGrid>
|
||||
|
||||
Reference in New Issue
Block a user