Add widget to show recent git workflow runs

* Fix Entity Page layout
* Fix mock api injection
This commit is contained in:
Iain Billett
2020-09-23 09:43:13 +01:00
parent 63d3a4d3da
commit f910491c58
2 changed files with 19 additions and 11 deletions
@@ -63,15 +63,19 @@ const CICDSwitcher = ({ entity }: { entity: Entity }) => {
const OverviewContent = ({ entity }: { entity: Entity }) => (
<Grid container spacing={3}>
<Grid item md={6}>
{isJenkinsAvailable(entity) && <JenkinsLatestRunCard branch="master" />}
{isGitHubActionsAvailable(entity) && (
<RecentWorkflowRunsCard entity={entity} />
)}
</Grid>
<Grid item md={6}>
<AboutCard entity={entity} />
</Grid>
{isJenkinsAvailable(entity) && (
<Grid item md={6}>
<JenkinsLatestRunCard branch="master" />
</Grid>
)}
{isGitHubActionsAvailable(entity) && (
<Grid item md={6}>
<RecentWorkflowRunsCard entity={entity} />
</Grid>
)}
</Grid>
);