@@ -7,18 +7,11 @@
|
||||
|
||||
import { BackstagePlugin } from '@backstage/core-plugin-api';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "badgesPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const badgesPlugin: BackstagePlugin<{}, {}, {}>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "EntityBadgesDialog" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const EntityBadgesDialog: ({
|
||||
open,
|
||||
onClose,
|
||||
}: {
|
||||
export const EntityBadgesDialog: (props: {
|
||||
open: boolean;
|
||||
onClose?: (() => any) | undefined;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -37,12 +37,11 @@ import {
|
||||
} from '@backstage/core-components';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
type Props = {
|
||||
export const EntityBadgesDialog = (props: {
|
||||
open: boolean;
|
||||
onClose?: () => any;
|
||||
};
|
||||
|
||||
export const EntityBadgesDialog = ({ open, onClose }: Props) => {
|
||||
}) => {
|
||||
const { open, onClose } = props;
|
||||
const theme = useTheme();
|
||||
const { entity } = useAsyncEntity();
|
||||
const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
identityApiRef,
|
||||
} from '@backstage/core-plugin-api';
|
||||
|
||||
/** @public */
|
||||
export const badgesPlugin = createPlugin({
|
||||
id: 'badges',
|
||||
apis: [
|
||||
@@ -34,6 +35,7 @@ export const badgesPlugin = createPlugin({
|
||||
],
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export const EntityBadgesDialog = badgesPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'EntityBadgesDialog',
|
||||
|
||||
Reference in New Issue
Block a user