Update empty table formatting
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user