Update Percentage.tsx
useTheme() on line 32 returns null so I tested this change to the import on my local copy, which gets the sonar plugin working. Other plugins seem to be importing from '@material-ui/core', e.g. https://github.com/backstage/backstage/blob/7ee15d2c5b40a8984aacabe7bdf5ccab759d95a6/plugins/catalog/src/components/CatalogFilter/AllServicesCount.tsx#L19
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { useTheme } from '@material-ui/styles';
|
||||
import { useTheme } from '@material-ui/core';
|
||||
import { Circle } from 'rc-progress';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user