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} hideMainButtons={hideMainButtons}
hasSkippedActions={skippedActionIds.length > 0} hasSkippedActions={skippedActionIds.length > 0}
hasStagedActions={actionIds.length > 1} hasStagedActions={actionIds.length > 1}
searchValue={searchValue}
/> />
<div <div
data-testid="actionListRows" data-testid="actionListRows"

View File

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