Merge pull request #10957 from oodamien/dvitrac/gh-10951

Use InfoCardVariants on custom cards variant attribute
This commit is contained in:
Johan Haals
2022-04-25 15:46:13 +02:00
committed by GitHub
19 changed files with 58 additions and 32 deletions
@@ -26,13 +26,14 @@ import { apiEntityColumns } from './presets';
import {
CodeSnippet,
InfoCard,
InfoCardVariants,
Link,
Progress,
WarningPanel,
} from '@backstage/core-components';
type Props = {
variant?: 'gridItem';
variant?: InfoCardVariants;
};
export const ConsumedApisCard = ({ variant = 'gridItem' }: Props) => {
@@ -26,6 +26,7 @@ import { createSpecApiTypeColumn } from './presets';
import {
CodeSnippet,
InfoCard,
InfoCardVariants,
Link,
Progress,
TableColumn,
@@ -33,7 +34,7 @@ import {
} from '@backstage/core-components';
type Props = {
variant?: 'gridItem';
variant?: InfoCardVariants;
};
const columns: TableColumn<ApiEntity>[] = [
@@ -26,13 +26,14 @@ import { apiEntityColumns } from './presets';
import {
CodeSnippet,
InfoCard,
InfoCardVariants,
Link,
Progress,
WarningPanel,
} from '@backstage/core-components';
type Props = {
variant?: 'gridItem';
variant?: InfoCardVariants;
};
export const ProvidedApisCard = ({ variant = 'gridItem' }: Props) => {
@@ -28,13 +28,14 @@ import React from 'react';
import {
CodeSnippet,
InfoCard,
InfoCardVariants,
Link,
Progress,
WarningPanel,
} from '@backstage/core-components';
type Props = {
variant?: 'gridItem';
variant?: InfoCardVariants;
};
export const ConsumingComponentsCard = ({ variant = 'gridItem' }: Props) => {
@@ -28,13 +28,14 @@ import React from 'react';
import {
CodeSnippet,
InfoCard,
InfoCardVariants,
Link,
Progress,
WarningPanel,
} from '@backstage/core-components';
type Props = {
variant?: 'gridItem';
variant?: InfoCardVariants;
};
export const ProvidingComponentsCard = ({ variant = 'gridItem' }: Props) => {