Add Stories for Header variants (#1027)

* Add Stories for Header variants

* Set service type
This commit is contained in:
Stefan Ålund
2020-05-27 10:53:59 +02:00
committed by GitHub
parent 093c311256
commit aeffe49ad3
5 changed files with 113 additions and 4 deletions
@@ -83,8 +83,8 @@ const ComponentPage: FC<ComponentPageProps> = ({
};
return (
<Page theme={pageTheme.home}>
<Header title={catalogRequest?.value?.name || 'Catalog'}>
<Page theme={pageTheme.service}>
<Header title={catalogRequest?.value?.name || 'Catalog'} type="service">
<ComponentContextMenu onUnregisterComponent={showRemovalDialog} />
</Header>
{confirmationDialogOpen && catalogRequest.value && (
@@ -22,7 +22,7 @@ import SettingsIcon from '@material-ui/icons/Settings';
import { useSettings } from '../../state';
export type Props = { title?: string };
export const PluginHeader: FC<Props> = ({ title = 'Circle CI' }) => {
export const PluginHeader: FC<Props> = ({ title = 'CircleCI' }) => {
const [, { showSettings }] = useSettings();
const location = useLocation();
const notRoot = !location.pathname.match(/\/circleci\/?$/);