Rename PeriskopErrorsTable -> EntityPeriskopErrorsCard

Per https://backstage.io/docs/plugins/composability#naming-patterns

Signed-off-by: Julio Zynger <julio.zynger@soundcloud.com>
This commit is contained in:
Julio Zynger
2022-03-04 09:46:18 +01:00
committed by Fredrik Adelöw
parent 4d7c6e2a11
commit bdfdace83c
6 changed files with 13 additions and 13 deletions
@@ -80,7 +80,7 @@ function isNotFoundInInstance(
return (apiResult as NotFoundInInstance)?.body !== undefined;
}
export const PeriskopErrorsTable = () => {
export const EntityPeriskopErrorsCard = () => {
const { entity } = useEntity();
const entityPeriskopName: string =
entity.metadata.annotations?.[PERISKOP_NAME_ANNOTATION] ??
@@ -15,7 +15,7 @@
*/
export {
PeriskopErrorsTable,
EntityPeriskopErrorsCard,
isPeriskopAvailable,
PERISKOP_NAME_ANNOTATION,
} from './PeriskopErrorsTable';
} from './EntityPeriskopErrorsCard';
+4 -4
View File
@@ -20,13 +20,13 @@ import { createComponentExtension } from '@backstage/core-plugin-api';
/**
* @public
*/
export const PeriskopErrorsTable = periskopPlugin.provide(
export const EntityPeriskopErrorsCard = periskopPlugin.provide(
createComponentExtension({
name: 'PeriskopErrorsTable',
name: 'EntityPeriskopErrorsCard',
component: {
lazy: () =>
import('./components/PeriskopErrorsTable').then(
m => m.PeriskopErrorsTable,
import('./components/EntityPeriskopErrorsCard').then(
m => m.EntityPeriskopErrorsCard,
),
},
}),
+2 -2
View File
@@ -15,10 +15,10 @@
*/
export { periskopPlugin, periskopApiRef } from './plugin';
export { PeriskopErrorsTable } from './extensions';
export { EntityPeriskopErrorsCard } from './extensions';
export {
isPeriskopAvailable,
PERISKOP_NAME_ANNOTATION,
} from './components/PeriskopErrorsTable';
} from './components/EntityPeriskopErrorsCard';
export * from './api/index';
export * from './types';