Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
animehart committed Mar 28, 2022
1 parent b872de2 commit 2085602
Showing 1 changed file with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ interface SessionViewSearchBarDeps {
onProcessSelected(process: Process): void;
}

const translatePlaceholder = {
placeholder: i18n.translate('xpack.sessionView.searchBar.searchBarKeyPlaceholder', {
defaultMessage: 'Find...',
}),
};

/**
* The main wrapper component for the session view.
*/
Expand Down Expand Up @@ -53,20 +59,9 @@ export const SessionViewSearchBar = ({

const showPagination = !!searchResults?.length;

const translatePlaceholder = i18n.translate(
'xpack.sessionView.searchBar.searchBarKeyPlaceholder',
{
defaultMessage: 'Find...',
}
);

return (
<div data-test-subj="sessionView:searchInput" css={{ position: 'relative' }}>
<EuiSearchBar
query={searchQuery}
onChange={onSearch}
box={{ placeholder: translatePlaceholder }}
/>
<EuiSearchBar query={searchQuery} onChange={onSearch} box={translatePlaceholder} />
{showPagination && (
<EuiPagination
data-test-subj="sessionView:searchPagination"
Expand Down

0 comments on commit 2085602

Please sign in to comment.