Skip to content

Commit

Permalink
Bug 1796116: fix duplicate badge on dev console list pages
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Feb 11, 2020
1 parent e57533e commit bfe4d2a
Showing 1 changed file with 11 additions and 5 deletions.
Expand Up @@ -10,17 +10,23 @@ export interface ProjectListPageProps {
children?: React.ReactNode;
badge?: React.ReactNode;
}
const ProjectListPage: React.FC<ProjectListPageProps> = (props) => (
const ProjectListPage: React.FC<ProjectListPageProps> = ({
badge,
title,
children,
listComponent,
...listPageProps
}) => (
<div className="odc-project-list-page">
<PageHeading title={props.title} badge={props.badge}>
{props.children}
<PageHeading title={title} badge={badge}>
{children}
</PageHeading>
<hr className="odc-project-list-page__section-border" />
<ListPage
{...props}
{...listPageProps}
showTitle={false}
kind="Project"
ListComponent={props.listComponent || ProjectsTable}
ListComponent={listComponent || ProjectsTable}
canCreate={false}
filterLabel="by name or display name"
textFilter="project-name"
Expand Down

0 comments on commit bfe4d2a

Please sign in to comment.