Skip to content

Commit

Permalink
Added dummy fucntion to avoid warning. (elastic#32070)
Browse files Browse the repository at this point in the history
Co-Authored-By: ganeshpatro321 <[email protected]>
  • Loading branch information
ganeshpatro321 authored and andrewvc committed Mar 7, 2019
1 parent 02b4e6b commit d6d1613
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@ const searchBox = {
}),
};

export const FilterBarLoading = () => <EuiSearchBar box={searchBox} />;
/**
* This component provides a visual placeholder while the FilterBar is loading.
* The onChange prop is required, so we provide an empty function to suppress the warning.
*/
export const FilterBarLoading = () => (
<EuiSearchBar
box={searchBox}
onChange={() => {
/* */
}}
/>
);

0 comments on commit d6d1613

Please sign in to comment.