From ca34b0cd2602ab383d8606d2631a681e9f64dda0 Mon Sep 17 00:00:00 2001 From: jeremy-babylonchain Date: Thu, 9 Jan 2025 13:01:37 +0700 Subject: [PATCH] improve fp search to allow search to not scope to showing tab --- .../FinalityProviderFilter.tsx | 5 +- .../FinalityProviderSearch.tsx | 23 +++++++- src/app/state/FinalityProviderState.tsx | 58 +++++++++++-------- 3 files changed, 58 insertions(+), 28 deletions(-) diff --git a/src/app/components/Staking/FinalityProviders/FinalityProviderFilter.tsx b/src/app/components/Staking/FinalityProviders/FinalityProviderFilter.tsx index ed4abb4c..c3d8e2ff 100644 --- a/src/app/components/Staking/FinalityProviders/FinalityProviderFilter.tsx +++ b/src/app/components/Staking/FinalityProviders/FinalityProviderFilter.tsx @@ -8,14 +8,15 @@ const options = [ ]; export const FinalityProviderFilter = () => { - const { filterValue, handleFilter } = useFinalityProviderState(); + const { filterValue, handleFilter, searchValue } = useFinalityProviderState(); return (