Using generic search input clear button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-01-14 11:01:00 +03:00
1 parent dde23c75ab
commit 0d2f8a3503
2 files changed
+5 -6

No files matched your search

@@ -5,5 +5,9 @@
.find-count {
margin-left: 2px;
}
label {
padding-bottom: 7px;
}
}
}
+1 -6
View File
@@ -61,7 +61,7 @@ export const LogSearch = observer((props: Props) => {
<SearchInput
value={searchQuery}
onChange={setSearch}
showClearIcon={false}
showClearIcon={true}
contentRight={totalFinds > 0 && findCounts}
onClear={onClear}
onKeyDown={onKeyDown}
@@ -78,11 +78,6 @@ export const LogSearch = observer((props: Props) => {
onClick={onNextOverlay}
disabled={jumpDisabled}
/>
<Icon
material="close"
tooltip={`Clear`}
onClick={onClear}
/>
</div>
);
});