From 63e880700e4b5c727161ad58908d80f199afafb6 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Fri, 30 Jun 2023 00:05:00 +0530 Subject: [PATCH] do not export catalog-import Signed-off-by: Himanshu Mishra --- .../StepFinishImportLocation/StepFinishImportLocation.tsx | 8 +++++++- plugins/catalog-import/src/components/useImportState.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/catalog-import/src/components/StepFinishImportLocation/StepFinishImportLocation.tsx b/plugins/catalog-import/src/components/StepFinishImportLocation/StepFinishImportLocation.tsx index 4d09b9129f..1d566253c3 100644 --- a/plugins/catalog-import/src/components/StepFinishImportLocation/StepFinishImportLocation.tsx +++ b/plugins/catalog-import/src/components/StepFinishImportLocation/StepFinishImportLocation.tsx @@ -19,7 +19,7 @@ import LocationOnIcon from '@material-ui/icons/LocationOn'; import React from 'react'; import { BackButton, ViewComponentButton } from '../Buttons'; import { EntityListComponent } from '../EntityListComponent'; -import { PrepareResult, NewLocations } from '../useImportState'; +import { PrepareResult } from '../useImportState'; import { Link } from '@backstage/core-components'; import partition from 'lodash/partition'; import { CompoundEntityRef } from '@backstage/catalog-model'; @@ -31,6 +31,12 @@ type Props = { onReset: () => void; }; +type NewLocations = Array<{ + exists?: boolean; + target: string; + entities: CompoundEntityRef[]; +}>; + // Among the newly registered entities, return a software entity (e.g. Component, API, Resource) const filterComponentEntity = ( newLocations: NewLocations, diff --git a/plugins/catalog-import/src/components/useImportState.ts b/plugins/catalog-import/src/components/useImportState.ts index da34b8b1d7..01649d5edb 100644 --- a/plugins/catalog-import/src/components/useImportState.ts +++ b/plugins/catalog-import/src/components/useImportState.ts @@ -32,7 +32,7 @@ export type ImportFlows = // the available states of the stepper type ImportStateTypes = 'analyze' | 'prepare' | 'review' | 'finish'; -export type NewLocations = Array<{ +type NewLocations = Array<{ exists?: boolean; target: string; entities: CompoundEntityRef[];