@@ -33,9 +33,7 @@ export const DomainCard: ({ entity }: DomainCardProps) => JSX.Element;
|
||||
// Warning: (ae-missing-release-tag) "DomainExplorerContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const DomainExplorerContent: ({
|
||||
title,
|
||||
}: {
|
||||
export const DomainExplorerContent: (props: {
|
||||
title?: string | undefined;
|
||||
}) => JSX.Element;
|
||||
|
||||
@@ -82,18 +80,14 @@ export const exploreRouteRef: RouteRef<undefined>;
|
||||
// Warning: (ae-missing-release-tag) "GroupsExplorerContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const GroupsExplorerContent: ({
|
||||
title,
|
||||
}: {
|
||||
export const GroupsExplorerContent: (props: {
|
||||
title?: string | undefined;
|
||||
}) => JSX.Element;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ToolExplorerContent" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const ToolExplorerContent: ({
|
||||
title,
|
||||
}: {
|
||||
export const ToolExplorerContent: (props: {
|
||||
title?: string | undefined;
|
||||
}) => JSX.Element;
|
||||
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { DomainEntity } from '@backstage/catalog-model';
|
||||
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
||||
import { Button } from '@material-ui/core';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { DomainCard } from '../DomainCard';
|
||||
|
||||
import {
|
||||
Content,
|
||||
ContentHeader,
|
||||
@@ -29,7 +29,6 @@ import {
|
||||
SupportButton,
|
||||
WarningPanel,
|
||||
} from '@backstage/core-components';
|
||||
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
const Body = () => {
|
||||
@@ -85,16 +84,11 @@ const Body = () => {
|
||||
);
|
||||
};
|
||||
|
||||
type DomainExplorerContentProps = {
|
||||
title?: string;
|
||||
};
|
||||
|
||||
export const DomainExplorerContent = ({
|
||||
title,
|
||||
}: DomainExplorerContentProps) => {
|
||||
/** @public */
|
||||
export const DomainExplorerContent = (props: { title?: string }) => {
|
||||
return (
|
||||
<Content noPadding>
|
||||
<ContentHeader title={title ?? 'Domains'}>
|
||||
<ContentHeader title={props.title ?? 'Domains'}>
|
||||
<SupportButton>Discover the domains in your ecosystem.</SupportButton>
|
||||
</ContentHeader>
|
||||
<Body />
|
||||
|
||||
@@ -31,21 +31,14 @@ const useStyles = makeStyles({
|
||||
},
|
||||
});
|
||||
|
||||
type GroupsExplorerContentProps = {
|
||||
title?: string;
|
||||
};
|
||||
|
||||
export const GroupsExplorerContent = ({
|
||||
title,
|
||||
}: GroupsExplorerContentProps) => {
|
||||
export const GroupsExplorerContent = (props: { title?: string }) => {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<Content noPadding stretch className={classes.root}>
|
||||
<ContentHeader title={title ?? 'Groups'}>
|
||||
<ContentHeader title={props.title ?? 'Groups'}>
|
||||
<SupportButton>Explore your groups.</SupportButton>
|
||||
</ContentHeader>
|
||||
|
||||
<GroupsDiagram />
|
||||
</Content>
|
||||
);
|
||||
|
||||
@@ -18,7 +18,6 @@ import { exploreToolsConfigRef } from '@backstage/plugin-explore-react';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { ToolCard } from '../ToolCard';
|
||||
|
||||
import {
|
||||
Content,
|
||||
ContentHeader,
|
||||
@@ -28,7 +27,6 @@ import {
|
||||
SupportButton,
|
||||
WarningPanel,
|
||||
} from '@backstage/core-components';
|
||||
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
const Body = () => {
|
||||
@@ -68,13 +66,9 @@ const Body = () => {
|
||||
);
|
||||
};
|
||||
|
||||
type ToolExplorerContentProps = {
|
||||
title?: string;
|
||||
};
|
||||
|
||||
export const ToolExplorerContent = ({ title }: ToolExplorerContentProps) => (
|
||||
export const ToolExplorerContent = (props: { title?: string }) => (
|
||||
<Content noPadding>
|
||||
<ContentHeader title={title ?? 'Tools'}>
|
||||
<ContentHeader title={props.title ?? 'Tools'}>
|
||||
<SupportButton>Discover the tools in your ecosystem.</SupportButton>
|
||||
</ContentHeader>
|
||||
<Body />
|
||||
|
||||
Reference in New Issue
Block a user