From 2be6b2923df18473fdd45e2dca0d45519f0bc74e Mon Sep 17 00:00:00 2001 From: Barukimang Date: Mon, 11 Nov 2024 19:06:55 +0700 Subject: [PATCH] re-added filter to members and following and sort to members tabs --- src/containers/daoExplorer/daoExplorer.tsx | 125 +++++++++++---------- 1 file changed, 65 insertions(+), 60 deletions(-) diff --git a/src/containers/daoExplorer/daoExplorer.tsx b/src/containers/daoExplorer/daoExplorer.tsx index c7cdce761..2770c47f8 100644 --- a/src/containers/daoExplorer/daoExplorer.tsx +++ b/src/containers/daoExplorer/daoExplorer.tsx @@ -154,7 +154,10 @@ export const DaoExplorer = () => { }); }; - const showSortFilter = filters.quickFilter === 'allDaos'; + const showFilter = ['allDaos', 'memberOf', 'following'].includes( + filters.quickFilter + ); + const showSort = ['allDaos', 'memberOf'].includes(filters.quickFilter); const filterGroupClassName = classNames('flex justify-between w-full', { 'flex flex-col gap-y-3 md:flex-row md:justify-between': isConnected, @@ -208,7 +211,7 @@ export const DaoExplorer = () => { ))}
- {showSortFilter && ( + {showFilter && (
- { - setActiveDropdown(e); - }} - customTrigger={ -
)} {isMobile && !isConnected && filters.quickFilter === 'allDaos' ? (