Update formatting

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-02-23 09:39:08 -05:00
parent a0049c043a
commit 79bd6cd609
4 changed files with 36 additions and 20 deletions
@@ -26,6 +26,7 @@ import {
Progress,
WarningPanel,
} from '@backstage/core';
import { Typography } from '@material-ui/core';
import {
EntityTable,
useEntity,
@@ -71,11 +72,15 @@ export const ConsumedApisCard = ({ variant = 'gridItem' }: Props) => {
title="Consumed APIs"
variant={variant}
emptyContent={
<div>
This {entity.kind.toLowerCase()} does not consume any APIs.{' '}
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
(Learn how to change this.)
</Link>
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">
This {entity.kind.toLowerCase()} does not consume any APIs.{' '}
</Typography>
<Typography variant="body2">
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
Learn how to change this.
</Link>
</Typography>
</div>
}
columns={apiEntityColumns}
@@ -23,6 +23,7 @@ import {
TableColumn,
WarningPanel,
} from '@backstage/core';
import { Typography } from '@material-ui/core';
import {
EntityTable,
useEntity,
@@ -75,11 +76,15 @@ export const HasApisCard = ({ variant = 'gridItem' }: Props) => {
title="APIs"
variant={variant}
emptyContent={
<div>
This {entity.kind.toLowerCase()} does not contain any APIs.{' '}
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-api">
(Learn how to add APIs.)
</Link>
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">
This {entity.kind.toLowerCase()} does not contain any APIs.{' '}
</Typography>
<Typography variant="body2">
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-api">
Learn how to change this.
</Link>
</Typography>
</div>
}
columns={columns}
@@ -26,6 +26,7 @@ import {
Progress,
WarningPanel,
} from '@backstage/core';
import { Typography } from '@material-ui/core';
import {
EntityTable,
useEntity,
@@ -70,11 +71,13 @@ export const ConsumingComponentsCard = ({ variant = 'gridItem' }: Props) => {
title="Consumers"
variant={variant}
emptyContent={
<div>
No component consumes this API.{' '}
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
(Learn how to consume APIs.)
</Link>
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">No component consumes this API. </Typography>
<Typography variant="body2">
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
Learn how to change this.
</Link>
</Typography>
</div>
}
columns={EntityTable.componentEntityColumns}
@@ -26,6 +26,7 @@ import {
Progress,
WarningPanel,
} from '@backstage/core';
import { Typography } from '@material-ui/core';
import {
EntityTable,
useEntity,
@@ -70,11 +71,13 @@ export const ProvidingComponentsCard = ({ variant = 'gridItem' }: Props) => {
title="Providers"
variant={variant}
emptyContent={
<div>
No component provides this API.{' '}
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specprovidesapis-optional">
(Learn how to provide APIs.)
</Link>
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">No component provides this API. </Typography>
<Typography variant="body2">
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specprovidesapis-optional">
Learn how to change this.
</Link>
</Typography>
</div>
}
columns={EntityTable.componentEntityColumns}