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

Co-Authored-By: ganeshpatro321 <30416891+ganeshpatro321@users.noreply.github.com>
This commit is contained in:
Andrew Cholakian 2019-03-06 21:35:47 -06:00 committed by GitHub
parent 02b4e6b359
commit 0a5b524ffd
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={() => {
/* */
}}
/>
);