1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +02: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}>

View File

@ -69,7 +69,7 @@ exports[`renders correctly with one feature 1`] = `
<h2 <h2
className="MuiTypography-root makeStyles-headerTitle-15 MuiTypography-h2" className="MuiTypography-root makeStyles-headerTitle-15 MuiTypography-h2"
> >
Features Features
</h2> </h2>
</div> </div>
<div <div
@ -263,7 +263,7 @@ exports[`renders correctly with one feature without permissions 1`] = `
<h2 <h2
className="MuiTypography-root makeStyles-headerTitle-15 MuiTypography-h2" className="MuiTypography-root makeStyles-headerTitle-15 MuiTypography-h2"
> >
Features Features
</h2> </h2>
</div> </div>
<div <div