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 const searchResultsHeader = filter.query
? 'Search results' ? `(${features.length} matches)`
: archive : '';
? 'Archived Features'
: 'Features'; const headerTitle = archive
? `Archived Features ${searchResultsHeader}`
: `Features ${searchResultsHeader}`;
return ( return (
<div className={styles.featureContainer}> <div className={styles.featureContainer}>