Ports the Fossa Plugin to the new plugin model

Towards #3424
This commit is contained in:
Oliver Sand
2021-02-01 12:19:04 +01:00
parent 7ee15d2c5b
commit 5ac9df8995
8 changed files with 119 additions and 75 deletions
+4 -4
View File
@@ -19,21 +19,21 @@ yarn add @backstage/plugin-fossa
```js
// packages/app/src/plugins.ts
export { plugin as Fossa } from '@backstage/plugin-fossa';
export { fossaPlugin } from '@backstage/plugin-fossa';
```
3. Add the `FossaCard` to the EntityPage:
3. Add the `EntityFossaCard` to the EntityPage:
```jsx
// packages/app/src/components/catalog/EntityPage.tsx
import { FossaCard } from '@backstage/plugin-fossa';
import { EntityFossaCard } from '@backstage/plugin-fossa';
const OverviewContent = ({ entity }: { entity: Entity }) => (
<Grid container spacing={3} alignItems="stretch">
// ...
<Grid item xs={12} sm={6} md={4}>
<FossaCard entity={entity} />
<EntityFossaCard />
</Grid>
// ...
</Grid>