Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 24, 2024
1 parent 6622997 commit 6497431
Showing 1 changed file with 28 additions and 31 deletions.
59 changes: 28 additions & 31 deletions src/app/(tabs)/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function SearchScreen() {
getRecentStory().then((viewed: StoryPreview[]) =>
setRecentlyViewed(viewed),
);
})().then(() => { });
})().then(() => {});
}, []);

useEffect(() => {
Expand Down Expand Up @@ -458,38 +458,37 @@ function SearchScreen() {
}}
/>

{
searchResults && searchResults.length > 0 && (
<ScrollView
horizontal={true}
showsHorizontalScrollIndicator={false}
contentContainerStyle={[
styles.dropdownContainer,
styles.firstDropdown,
]}
>
{search
? renderFilterDropdown(
{searchResults && searchResults.length > 0 && (
<ScrollView
horizontal={true}
showsHorizontalScrollIndicator={false}
contentContainerStyle={[
styles.dropdownContainer,
styles.firstDropdown,
]}
>
{search
? renderFilterDropdown(
'Genre',
selectedMultipleGenresForFiltering,
genreFilterOptions,
setSelectedMultipleGenresForFiltering,
)
: renderGenreDropdown('Genre', selectedGenre, genreFilterOptions)}
{renderFilterDropdown(
'Topic',
selectedTopicsForFiltering,
topicFilterOptions,
setSelectedTopicsForFiltering,
)}
{renderFilterDropdown(
'Tone',
selectedTonesForFiltering,
toneFilterOptions,
setSelectedTonesForFiltering,
)}
</ScrollView>
)}
: renderGenreDropdown('Genre', selectedGenre, genreFilterOptions)}
{renderFilterDropdown(
'Topic',
selectedTopicsForFiltering,
topicFilterOptions,
setSelectedTopicsForFiltering,
)}
{renderFilterDropdown(
'Tone',
selectedTonesForFiltering,
toneFilterOptions,
setSelectedTonesForFiltering,
)}
</ScrollView>
)}

{search && (
<View>
Expand All @@ -499,7 +498,6 @@ function SearchScreen() {
</View>
)}


{/* {search && ( */}
{/* <View style={styles.default}> */}
{/* <Button */}
Expand Down Expand Up @@ -614,7 +612,6 @@ function SearchScreen() {
</View>
))}


{showGenreCarousals ? (
<ScrollView
showsVerticalScrollIndicator={false}
Expand Down Expand Up @@ -701,7 +698,7 @@ function SearchScreen() {
{/* title="Genre" */}
{/* /> */}
</View>
</SafeAreaView >
</SafeAreaView>
);
}

Expand Down

0 comments on commit 6497431

Please sign in to comment.