Fix inspector-monitor filter

This commit is contained in:
Nathan Bierema 2022-02-05 17:49:35 -05:00
parent 2ec10f00ee
commit fea1632689
2 changed files with 4 additions and 0 deletions

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')}>