Skip to content

Commit

Permalink
add back the deprecation triangle on cards too
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
  • Loading branch information
freben committed Feb 16, 2022
1 parent e53afe4 commit 6fe01ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,16 @@ 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>
);

return (
<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 />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const TemplateList = ({
<Card
key={stringifyEntityRef(template)}
template={template as TemplateEntityV1beta2}
deprecated={template.apiVersion === 'backstage.io/v1beta2'}
/>
))}
</ItemCardGrid>
Expand Down

0 comments on commit 6fe01ce

Please sign in to comment.