remove even more BackstageTheme usages

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-11-20 15:52:05 +01:00
parent dd3517df31
commit 1d7c989db2
100 changed files with 206 additions and 253 deletions
@@ -27,7 +27,6 @@ import {
Switch,
Tooltip,
Typography,
Theme,
makeStyles,
} from '@material-ui/core';
import ShowChartIcon from '@material-ui/icons/ShowChart';
@@ -54,7 +53,7 @@ import { Toggle } from './toggle';
import { DurationSlider } from './duration-slider';
import { Label } from './label';
export const useStyles = makeStyles<Theme>(
export const useStyles = makeStyles(
theme => ({
rootCard: {
padding: theme.spacing(0, 0, 0, 0),
@@ -15,9 +15,9 @@
*/
import React, { PropsWithChildren } from 'react';
import { Typography, Theme, makeStyles } from '@material-ui/core';
import { Typography, makeStyles } from '@material-ui/core';
export const useStyles = makeStyles<Theme>(
export const useStyles = makeStyles(
theme => ({
label: {
fontWeight: 'normal',
+2 -2
View File
@@ -15,7 +15,7 @@
*/
import React, { useCallback, useState, useMemo, useEffect } from 'react';
import { Grid, makeStyles, Theme } from '@material-ui/core';
import { Grid, makeStyles } from '@material-ui/core';
import { Alert } from '@material-ui/lab';
import { useEntity } from '@backstage/plugin-catalog-react';
import { useApi, errorApiRef } from '@backstage/core-plugin-api';
@@ -57,7 +57,7 @@ export function EntityPageCicdCharts() {
));
}
const useStyles = makeStyles<Theme>(
const useStyles = makeStyles(
theme => ({
pane: {
padding: theme.spacing(1, 1, 1, 1),