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:
Rob Long
2021-02-16 16:55:51 +00:00
committed by GitHub
parent ca10ce8914
commit a98637c153
@@ -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';