Expose EntityLinksEmptyState to material-ui overrides

Signed-off-by: Daniel Ortiz Lira <dortiz@vmware.com>
This commit is contained in:
Daniel Ortiz Lira
2021-09-30 18:40:54 -05:00
parent 5091a36ca6
commit a4bb6dc73b
2 changed files with 13 additions and 7 deletions
@@ -26,13 +26,18 @@ const ENTITY_YAML = `metadata:
title: My Dashboard
icon: dashboard`;
const useStyles = makeStyles<BackstageTheme>(theme => ({
code: {
borderRadius: 6,
margin: `${theme.spacing(2)}px 0px`,
background: theme.palette.type === 'dark' ? '#444' : '#fff',
},
}));
export type EntityLinksEmptyStateClassKey = 'code';
const useStyles = makeStyles<BackstageTheme>(
theme => ({
code: {
borderRadius: 6,
margin: `${theme.spacing(2)}px 0px`,
background: theme.palette.type === 'dark' ? '#444' : '#fff',
},
}),
{ name: 'PluginCatalogEntityLinksEmptyState' },
);
export const EntityLinksEmptyState = () => {
const classes = useStyles();
@@ -15,3 +15,4 @@
*/
export { EntityLinksCard } from './EntityLinksCard';
export type { EntityLinksEmptyStateClassKey } from './EntityLinksEmptyState';