Update empty table formatting

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-02-23 11:29:31 -05:00
parent 440de45549
commit 80af0fb577
5 changed files with 41 additions and 21 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 ProvidedApisCard = ({ variant = 'gridItem' }: Props) => {
title="Provided APIs"
variant={variant}
emptyContent={
<div>
This {entity.kind.toLowerCase()} does not provide its own APIs.{' '}
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specprovidesapis-optional">
(Learn how to change this.)
</Link>
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">
This {entity.kind.toLowerCase()} does not provide its own APIs.{' '}
</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={apiEntityColumns}
@@ -72,7 +72,7 @@ export const ProvidingComponentsCard = ({ variant = 'gridItem' }: Props) => {
variant={variant}
emptyContent={
<div style={{ textAlign: 'center' }}>
<Typography variant="h6">No component provides this API. </Typography>
<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.