remove unnecessary usage of deprecated BackstageTheme

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-10-25 21:13:41 +02:00
parent c3f3253b74
commit 62b5922916
34 changed files with 232 additions and 250 deletions
@@ -17,10 +17,9 @@
import React from 'react';
import { CodeClimateData } from '../../api';
import { Link } from '@backstage/core-components';
import { Box, makeStyles, Typography } from '@material-ui/core';
import { BackstageTheme } from '@backstage/theme';
import { Box, makeStyles, Theme, Typography } from '@material-ui/core';
const letterStyle = (theme: BackstageTheme) => ({
const letterStyle = (theme: Theme) => ({
color: theme.palette.common.white,
border: 0,
borderRadius: '3px',
@@ -32,7 +31,7 @@ const fontSize = {
fontSize: '25px',
};
const letterColor = (letter: string, theme: BackstageTheme) => {
const letterColor = (letter: string, theme: Theme) => {
if (letter === 'A') {
return theme.palette.success.main || '#45d298';
} else if (letter === 'B') {
@@ -49,7 +48,7 @@ const letterColor = (letter: string, theme: BackstageTheme) => {
};
const useStyles = makeStyles<
BackstageTheme,
Theme,
{
maintainabilityLetter: string;
testCoverageLetter: string;