We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70783ca commit c0848cfCopy full SHA for c0848cf
src/components/admin-base-setting/index.js
@@ -5,14 +5,13 @@ let i = 1
5
6
const AdminBaseSetting = props => {
7
const [ uid ] = useState( `ugb-admin-setting-${ i++ }` )
8
- const isSearched = props.searchTerm && props.label.toLowerCase().includes( props.searchTerm )
+ const isSearched = props.searchedSettings.includes( props.label )
9
const mainClasses = classnames( [
10
'ugb-admin-setting',
11
props.className,
12
], {
13
[ `ugb-admin-setting--${ props.size }` ]: props.size,
14
- 'ugb-admin-setting--highlight': isSearched,
15
- 'ugb-admin-setting--not-highlight': props.searchTerm && ! isSearched,
+ 'ugb-admin-setting--not-highlight': ! isSearched,
16
} )
17
18
return (
0 commit comments