Use service theme (#1197)

* Use service theme

* Theme spacing

* breadcrumbs
This commit is contained in:
Stefan Ålund
2020-06-08 20:45:26 +02:00
committed by GitHub
parent 056c794451
commit 920f496a7f
2 changed files with 8 additions and 12 deletions
+5 -10
View File
@@ -61,9 +61,9 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
},
type: {
textTransform: 'uppercase',
fontSize: 9,
fontSize: 11,
opacity: 0.8,
marginBottom: 10,
marginBottom: theme.spacing(1),
color: theme.palette.bursts.fontColor,
},
}));
@@ -104,16 +104,11 @@ const TypeFragment: FC<TypeFragmentProps> = ({ type, typeLink, classes }) => {
}
if (!typeLink) {
return (
// </Link>
<Typography className={classes.type}>{type}</Typography>
);
// TODO: Add breadcrumbs.
return <Typography className={classes.type}>{type}</Typography>;
}
return (
// <Link to={typeLink}>
<Typography className={classes.type}>{type}</Typography>
);
return <Typography className={classes.type}>{type}</Typography>;
};
const TitleFragment: FC<TitleFragmentProps> = ({
@@ -115,8 +115,9 @@ const ComponentPage: FC<ComponentPageProps> = ({ match, history }) => {
];
return (
<Page theme={pageTheme.home}>
<Header title={component?.name || 'Catalog'}>
// TODO: Switch theme and type props based on component type (website, library, ...)
<Page theme={pageTheme.service}>
<Header title={component?.name || 'Catalog'} type="Service">
<ComponentContextMenu onUnregisterComponent={showRemovalDialog} />
</Header>
<HeaderTabs tabs={tabs} />