From 00b675865122856b6c1319d2d6b5875fe9f7d31b Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 14 Nov 2023 00:48:10 +0200 Subject: [PATCH] feat: add search filter for table --- .../ValidatorManagement/ManagementTable/ManagementTable.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/ValidatorManagement/ManagementTable/ManagementTable.tsx b/src/pages/ValidatorManagement/ManagementTable/ManagementTable.tsx index 24db502b..f3fbb22d 100644 --- a/src/pages/ValidatorManagement/ManagementTable/ManagementTable.tsx +++ b/src/pages/ValidatorManagement/ManagementTable/ManagementTable.tsx @@ -161,6 +161,11 @@ const ManagementTable = ({ tab }: ManagementTableProps) => { {validators .filter(validator => validator.status === tab) + .filter( + validator => + validator.address.includes(searchValue) || + validator.number.toString().includes(searchValue), + ) .map((validator, index) => (