1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: add project count to projectlist (#2017)

This commit is contained in:
Christopher Kolstad 2022-08-31 15:25:49 +02:00 committed by GitHub
parent 5d8678618e
commit 84b3777dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,12 +147,17 @@ export const ProjectListNew = () => {
});
};
let projectCount =
filteredProjects.length < projects.length
? `${filteredProjects.length} of ${projects.length}`
: projects.length;
return (
<div ref={ref}>
<PageContent
header={
<PageHeader
title="Projects"
title={`Projects (${projectCount})`}
actions={
<>
<ConditionallyRender