From 11bddff64c2e642efb31f11df22981dc0a35ff51 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Sat, 22 Oct 2022 12:36:38 +0300 Subject: [PATCH] update: empty search state, change "all projects" tab to "search resutls" on filtering --- src/features/Projects/Components/Categories/Categories.tsx | 3 ++- src/features/Projects/pages/ExplorePage/ExplorePage.tsx | 2 +- .../Projects/pages/ExplorePage/ProjectsGrid/ProjectsGrid.tsx | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/Projects/Components/Categories/Categories.tsx b/src/features/Projects/Components/Categories/Categories.tsx index af71e8b..b103d13 100644 --- a/src/features/Projects/Components/Categories/Categories.tsx +++ b/src/features/Projects/Components/Categories/Categories.tsx @@ -20,6 +20,7 @@ const colors = [ export type Category = Pick interface Props { + filtersActive?: boolean; value: Category | null onChange?: (v: Category | null) => void } @@ -60,7 +61,7 @@ export default function Categories(props: Props) { flex flex-col font-medium hover:bg-gray-100 active:bg-gray-200 rounded-t-8 px-16 py-16 min-w-max ${props.value === null ? "text-primary-500 border-b-2 border-primary-500" : "text-gray-500"} `} - >All projects + >{props.filtersActive ? "Search results" : "All projects"} {sortedByAppsCount.map((category, idx) =>