fix: capitalize

Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
This commit is contained in:
Matteo Pietro Dazzi
2022-10-26 21:44:48 +02:00
parent 9a2088fb8c
commit f5ab2bc24c
2 changed files with 238 additions and 1 deletions
@@ -37,6 +37,8 @@ import { RELATION_OWNED_BY, CompoundEntityRef } from '@backstage/catalog-model';
import { Header, HeaderLabel } from '@backstage/core-components';
import { useRouteRef, configApiRef, useApi } from '@backstage/core-plugin-api';
import { capitalize } from 'lodash';
import { rootRouteRef } from '../../../routes';
const skeleton = <Skeleton animation="wave" variant="text" height={40} />;
@@ -103,7 +105,7 @@ export const TechDocsReaderPageHeader = (
const labels = (
<>
<HeaderLabel
label={entityMetadata?.kind || 'Entity'}
label={capitalize(entityMetadata?.kind || 'entity')}
value={
<EntityRefLink
color="inherit"