1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix/search-header (#742)

* fix/search-header

* fix: update snapshots
This commit is contained in:
Fredrik Strand Oseberg 2022-02-23 16:08:04 +01:00 committed by GitHub
parent 85f8977b52
commit 3d93ed44d4
2 changed files with 9 additions and 7 deletions

View File

@ -96,11 +96,13 @@ const FeatureToggleList = ({
);
};
const headerTitle = filter.query
? 'Search results'
: archive
? 'Archived Features'
: 'Features';
const searchResultsHeader = filter.query
? `(${features.length} matches)`
: '';
const headerTitle = archive
? `Archived Features ${searchResultsHeader}`
: `Features ${searchResultsHeader}`;
return (
<div className={styles.featureContainer}>