remove even more BackstageTheme usages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user