From d18469abc49e5e5d0b8ae2de0f8974e74d7c4a6c Mon Sep 17 00:00:00 2001 From: Aditya Pawar Date: Thu, 4 Apr 2024 17:57:15 -0700 Subject: [PATCH] Small style changes --- src/app/(tabs)/home/index.tsx | 1 + src/app/(tabs)/search/index.tsx | 11 +++++------ src/app/(tabs)/search/styles.ts | 6 +----- src/components/PreviewCard/styles.ts | 4 ++-- src/components/RecentSearchCard/styles.ts | 9 ++++----- src/styles/colors.ts | 1 + 6 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/app/(tabs)/home/index.tsx b/src/app/(tabs)/home/index.tsx index 81ffc8db..a584572e 100644 --- a/src/app/(tabs)/home/index.tsx +++ b/src/app/(tabs)/home/index.tsx @@ -77,6 +77,7 @@ function HomeScreen() { + {featuredStories.length > 0 && ( Featured Stories diff --git a/src/app/(tabs)/search/index.tsx b/src/app/(tabs)/search/index.tsx index 3f256ff9..ccdb2afc 100644 --- a/src/app/(tabs)/search/index.tsx +++ b/src/app/(tabs)/search/index.tsx @@ -227,9 +227,8 @@ function SearchScreen() { {showRecents && (search && searchResults.length > 0 ? ( - - {searchResults.length}{' '} - {searchResults.length === 1 ? 'Story' : 'Stories'} + + Showing results 1-{searchResults.length} ) : search && searchResults.length === 0 ? ( @@ -239,7 +238,7 @@ function SearchScreen() { There are no stories - for {search}. + for "{search}". @@ -252,7 +251,7 @@ function SearchScreen() { ) : recentSearches.length > 0 || recentlyViewed.length > 0 ? ( - Recent Searches + Recent Searches - Recently Viewed + Recently Viewed