type fixes for React 18

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-13 00:05:25 +02:00
parent b2817daf0c
commit 0296f272b4
50 changed files with 193 additions and 94 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { useEntity } from '@backstage/plugin-catalog-react';
import { humanizeEntityRef, useEntity } from '@backstage/plugin-catalog-react';
import { Box, Modal, makeStyles } from '@material-ui/core';
import FolderIcon from '@material-ui/icons/Folder';
import FileOutlinedIcon from '@material-ui/icons/InsertDriveFileOutlined';
@@ -181,7 +181,9 @@ export const FileExplorer = () => {
}
if (!value) {
return (
<Alert severity="warning">No code coverage found for ${entity}</Alert>
<Alert severity="warning">
No code coverage found for {humanizeEntityRef(entity)}
</Alert>
);
}