Merge pull request #20842 from backstage/blam/fix-annotations-staet

Export `MissingAnnotationEmptyState` from `@backstage/plugin-catalog-react` instead
This commit is contained in:
Patrik Oldsberg
2023-11-02 10:33:08 +01:00
committed by GitHub
43 changed files with 373 additions and 137 deletions
@@ -31,6 +31,7 @@ jest.mock('../../hooks/useBitriseBuildWorkflows', () => ({
}));
jest.mock('@backstage/plugin-catalog-react', () => ({
...jest.requireActual('@backstage/plugin-catalog-react'),
useEntity: () => {
return entityValue;
},
@@ -15,18 +15,16 @@
*/
import { Entity } from '@backstage/catalog-model';
import { useEntity } from '@backstage/plugin-catalog-react';
import {
useEntity,
MissingAnnotationEmptyState,
} from '@backstage/plugin-catalog-react';
import React, { useState } from 'react';
import { useBitriseBuildWorkflows } from '../../hooks/useBitriseBuildWorkflows';
import { AsyncState } from 'react-use/lib/useAsync';
import { BitriseBuildsTable } from '../BitriseBuildsTableComponent';
import { Item, Select } from '../Select';
import {
Content,
ContentHeader,
MissingAnnotationEmptyState,
Page,
} from '@backstage/core-components';
import { Content, ContentHeader, Page } from '@backstage/core-components';
export type Props = {
entity: Entity;