From d6d16138c50ee2192c1259762b6235a0f6a30be3 Mon Sep 17 00:00:00 2001 From: Ganesh Patro <30416891+ganeshpatro321@users.noreply.github.com> Date: Thu, 7 Mar 2019 07:27:13 +0530 Subject: [PATCH] Added dummy fucntion to avoid warning. (#32070) Co-Authored-By: ganeshpatro321 <30416891+ganeshpatro321@users.noreply.github.com> --- .../components/functional/filter_bar_loading.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/uptime/public/components/functional/filter_bar_loading.tsx b/x-pack/plugins/uptime/public/components/functional/filter_bar_loading.tsx index a10e552440a73..4359c923f83d9 100644 --- a/x-pack/plugins/uptime/public/components/functional/filter_bar_loading.tsx +++ b/x-pack/plugins/uptime/public/components/functional/filter_bar_loading.tsx @@ -15,4 +15,15 @@ const searchBox = { }), }; -export const FilterBarLoading = () => ; +/** + * 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 = () => ( + { + /* */ + }} + /> +);