diff --git a/packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js b/packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js index 492478b0f058d..99a5ab2d103f0 100644 --- a/packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js +++ b/packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js @@ -218,6 +218,10 @@ export default function ComponentsSettings(_: {}): React.Node { }); }, []); + const removeAllFilter = () => { + setComponentFilters([]); + }; + const toggleFilterIsEnabled = useCallback( (componentFilter: ComponentFilter, isEnabled: boolean) => { setComponentFilters(prevComponentFilters => { @@ -434,11 +438,16 @@ export default function ComponentsSettings(_: {}): React.Node { ))} - - + {componentFilters.length > 0 && ( + + )} ); }