Fix inspector-monitor filter (#1077)

* Fix inspector-monitor filter

* Create stale-deers-pump.md

* Update stale-deers-pump.md
This commit is contained in:
Nathan Bierema 2022-02-06 00:46:29 -05:00 committed by GitHub
parent 2ec10f00ee
commit 55cc37eacc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
'@redux-devtools/inspector-monitor': patch
'@redux-devtools/app': patch
'remotedev-redux-devtools-extension': patch
---
Fix filter to show state-controlled search value

View File

@ -154,6 +154,7 @@ export default class ActionList<
hideMainButtons={hideMainButtons}
hasSkippedActions={skippedActionIds.length > 0}
hasStagedActions={actionIds.length > 1}
searchValue={searchValue}
/>
<div
data-testid="actionListRows"

View File

@ -16,6 +16,7 @@ interface Props {
hideMainButtons: boolean | undefined;
hasSkippedActions: boolean;
hasStagedActions: boolean;
searchValue: string | undefined;
}
const ActionListHeader: FunctionComponent<Props> = ({
@ -26,12 +27,14 @@ const ActionListHeader: FunctionComponent<Props> = ({
onCommit,
onSweep,
hideMainButtons,
searchValue,
}) => (
<div {...styling('actionListHeader')}>
<input
{...styling('actionListHeaderSearch')}
onChange={(e) => onSearch(e.target.value)}
placeholder="filter..."
value={searchValue}
/>
{!hideMainButtons && (
<div {...styling('actionListHeaderWrapper')}>