From 09efce8ea8cfeb186531baee9ec6f6979db83086 Mon Sep 17 00:00:00 2001 From: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:01:47 -0500 Subject: [PATCH] Bug fix: No matching hosts message (#3652) --- changes/issue-3291-empty-host-message-bug | 1 + .../ManageHostsPage/components/EmptyHosts/EmptyHosts.tsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changes/issue-3291-empty-host-message-bug diff --git a/changes/issue-3291-empty-host-message-bug b/changes/issue-3291-empty-host-message-bug new file mode 100644 index 0000000000..61146b520b --- /dev/null +++ b/changes/issue-3291-empty-host-message-bug @@ -0,0 +1 @@ +* Fix empty host message when no hosts match search criteria diff --git a/frontend/pages/hosts/ManageHostsPage/components/EmptyHosts/EmptyHosts.tsx b/frontend/pages/hosts/ManageHostsPage/components/EmptyHosts/EmptyHosts.tsx index 06e0188564..5cecc1a3b9 100644 --- a/frontend/pages/hosts/ManageHostsPage/components/EmptyHosts/EmptyHosts.tsx +++ b/frontend/pages/hosts/ManageHostsPage/components/EmptyHosts/EmptyHosts.tsx @@ -5,7 +5,11 @@ import React from "react"; const baseClass = "empty-hosts"; -const EmptyHosts = (pageIndex: number): JSX.Element => { +interface IEmptyHostsProps { + pageIndex: number; +} + +const EmptyHosts = ({ pageIndex }: IEmptyHostsProps): JSX.Element => { return (