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:
committed by
Fredrik Adelöw
parent
4d7c6e2a11
commit
bdfdace83c
+1
-1
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user