Use a more strict type for variant of cards

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-02-17 11:41:39 +01:00
parent 2d8e78ed4c
commit f4c2bcf54b
15 changed files with 74 additions and 44 deletions
@@ -13,16 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import { Audit, AuditCompleted, LighthouseCategoryId } from '../../api';
import {
InfoCard,
InfoCardVariants,
Progress,
StatusError,
StatusOK,
StatusWarning,
StructuredMetadataTable,
} from '@backstage/core';
import React from 'react';
import { Audit, AuditCompleted, LighthouseCategoryId } from '../../api';
import { useWebsiteForEntity } from '../../hooks/useWebsiteForEntity';
import AuditStatusIcon from '../AuditStatusIcon';
@@ -96,7 +97,7 @@ export const LastLighthouseAuditCard = ({
variant,
}: {
dense?: boolean;
variant?: string;
variant?: InfoCardVariants;
}) => {
const { value: website, loading, error } = useWebsiteForEntity();