diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index ed782c4e9a..482352c2f8 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -56,14 +56,6 @@ export interface CatalogTableProps { subtitle?: string; } -const useStyles = makeStyles(theme => ({ - empty: { - padding: theme.spacing(2), - display: 'flex', - justifyContent: 'center', - }, -})); - const YellowStar = withStyles({ root: { color: '#f3ba37', @@ -75,7 +67,6 @@ export const CatalogTable = (props: CatalogTableProps) => { const { columns, actions, tableOptions, subtitle, emptyContent } = props; const { isStarredEntity, toggleStarredEntity } = useStarredEntities(); const { loading, error, entities, filters } = useEntityList(); - const classes = useStyles(); const defaultColumns: TableColumn[] = useMemo(() => { return [ @@ -238,9 +229,7 @@ export const CatalogTable = (props: CatalogTableProps) => { data={rows} actions={actions || defaultActions} subtitle={subtitle} - emptyContent={ - emptyContent &&
{emptyContent}
- } + emptyContent={emptyContent} /> ); };