Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dweber019 authored Sep 16, 2024
1 parent 58627d6 commit 794ff04
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions plugins/endoflife/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,15 @@ You could use this directly on components like this
```tsx
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityEndOfLifeCard } from '@dweber019/backstage-plugin-endoflife';
import {
EntityEndOfLifeCard,
isEndOfLifeAvailable,
} from '@dweber019/backstage-plugin-endoflife';
const overviewContent = (
<Grid container spacing={3} alignItems="stretch">
{entityWarningContent}
...
<EntitySwitch>
<EntitySwitch.Case if={hasLabels}>
<Grid item md={4} xs={12}>
<EntityLabelsCard />
</Grid>
</EntitySwitch.Case>
</EntitySwitch>
<EntitySwitch>
<EntitySwitch.Case if={isEndOfLifeAvailable}>
<Grid item md={6}>
Expand Down

0 comments on commit 794ff04

Please sign in to comment.