removed deprecated entity props
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -149,9 +149,7 @@ export { cloudbuildPlugin as plugin };
|
||||
// Warning: (ae-missing-release-tag) "EntityCloudbuildContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const EntityCloudbuildContent: (_props: {
|
||||
entity?: Entity | undefined;
|
||||
}) => JSX.Element;
|
||||
export const EntityCloudbuildContent: () => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "EntityLatestCloudbuildRunCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
@@ -159,7 +157,6 @@ export const EntityCloudbuildContent: (_props: {
|
||||
export const EntityLatestCloudbuildRunCard: ({
|
||||
branch,
|
||||
}: {
|
||||
entity?: Entity | undefined;
|
||||
branch: string;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -169,7 +166,6 @@ export const EntityLatestCloudbuildRunCard: ({
|
||||
export const EntityLatestCloudbuildsForBranchCard: ({
|
||||
branch,
|
||||
}: {
|
||||
entity?: Entity | undefined;
|
||||
branch: string;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -196,7 +192,6 @@ export { isCloudbuildAvailable as isPluginApplicableToEntity };
|
||||
export const LatestWorkflowRunCard: ({
|
||||
branch,
|
||||
}: {
|
||||
entity?: Entity | undefined;
|
||||
branch: string;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -206,7 +201,6 @@ export const LatestWorkflowRunCard: ({
|
||||
export const LatestWorkflowsForBranchCard: ({
|
||||
branch,
|
||||
}: {
|
||||
entity?: Entity | undefined;
|
||||
branch: string;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -256,11 +250,10 @@ export interface Results {
|
||||
buildStepOutputs: string[];
|
||||
}
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
|
||||
// Warning: (ae-missing-release-tag) "Router" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const Router: (_props: Props) => JSX.Element;
|
||||
export const Router: () => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "Source" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { useWorkflowRuns, WorkflowRun } from '../useWorkflowRuns';
|
||||
import { WorkflowRunsTable } from '../WorkflowRunsTable';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
import { WorkflowRunStatus } from '../WorkflowRunStatus';
|
||||
import { Theme, makeStyles, LinearProgress } from '@material-ui/core';
|
||||
@@ -76,8 +75,6 @@ const WidgetContent = ({
|
||||
export const LatestWorkflowRunCard = ({
|
||||
branch = 'master',
|
||||
}: {
|
||||
/** @deprecated The entity is now grabbed from context instead */
|
||||
entity?: Entity;
|
||||
branch: string;
|
||||
}) => {
|
||||
const { entity } = useEntity();
|
||||
@@ -109,8 +106,6 @@ export const LatestWorkflowRunCard = ({
|
||||
export const LatestWorkflowsForBranchCard = ({
|
||||
branch = 'master',
|
||||
}: {
|
||||
/** @deprecated The entity is now grabbed from context instead */
|
||||
entity?: Entity;
|
||||
branch: string;
|
||||
}) => {
|
||||
const { entity } = useEntity();
|
||||
|
||||
@@ -26,12 +26,7 @@ import { MissingAnnotationEmptyState } from '@backstage/core-components';
|
||||
export const isCloudbuildAvailable = (entity: Entity) =>
|
||||
Boolean(entity.metadata.annotations?.[CLOUDBUILD_ANNOTATION]);
|
||||
|
||||
type Props = {
|
||||
/** @deprecated The entity is now grabbed from context instead */
|
||||
entity?: Entity;
|
||||
};
|
||||
|
||||
export const Router = (_props: Props) => {
|
||||
export const Router = () => {
|
||||
const { entity } = useEntity();
|
||||
|
||||
if (!isCloudbuildAvailable(entity)) {
|
||||
|
||||
Reference in New Issue
Block a user