From 6497431c58b1b879722316213adf7f9c2001e1dc Mon Sep 17 00:00:00 2001 From: Aditya Pawar Date: Tue, 23 Apr 2024 20:57:37 -0700 Subject: [PATCH] Run prettier --- src/app/(tabs)/search/index.tsx | 59 ++++++++++++++++----------------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/src/app/(tabs)/search/index.tsx b/src/app/(tabs)/search/index.tsx index 0d3e181..e2c00af 100644 --- a/src/app/(tabs)/search/index.tsx +++ b/src/app/(tabs)/search/index.tsx @@ -232,7 +232,7 @@ function SearchScreen() { getRecentStory().then((viewed: StoryPreview[]) => setRecentlyViewed(viewed), ); - })().then(() => { }); + })().then(() => {}); }, []); useEffect(() => { @@ -458,38 +458,37 @@ function SearchScreen() { }} /> - { - searchResults && searchResults.length > 0 && ( - - {search - ? renderFilterDropdown( + {searchResults && searchResults.length > 0 && ( + + {search + ? renderFilterDropdown( 'Genre', selectedMultipleGenresForFiltering, genreFilterOptions, setSelectedMultipleGenresForFiltering, ) - : renderGenreDropdown('Genre', selectedGenre, genreFilterOptions)} - {renderFilterDropdown( - 'Topic', - selectedTopicsForFiltering, - topicFilterOptions, - setSelectedTopicsForFiltering, - )} - {renderFilterDropdown( - 'Tone', - selectedTonesForFiltering, - toneFilterOptions, - setSelectedTonesForFiltering, - )} - - )} + : renderGenreDropdown('Genre', selectedGenre, genreFilterOptions)} + {renderFilterDropdown( + 'Topic', + selectedTopicsForFiltering, + topicFilterOptions, + setSelectedTopicsForFiltering, + )} + {renderFilterDropdown( + 'Tone', + selectedTonesForFiltering, + toneFilterOptions, + setSelectedTonesForFiltering, + )} + + )} {search && ( @@ -499,7 +498,6 @@ function SearchScreen() { )} - {/* {search && ( */} {/* */} {/*