Added dummy fucntion to avoid warning. (#32070) (#32604)

Co-Authored-By: ganeshpatro321 <30416891+ganeshpatro321@users.noreply.github.com>
This commit is contained in:
Andrew Cholakian 2019-03-06 21:36:12 -06:00 committed by GitHub
parent 5ae417dade
commit 6cb6aacbf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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={() => {
/* */
}}
/>
);