From 2537dcf4ba668f51a39e63d9b533ae520354ee37 Mon Sep 17 00:00:00 2001 From: Aditya Pawar Date: Wed, 24 Apr 2024 01:55:20 -0700 Subject: [PATCH] Run prettier --- src/app/(tabs)/search/index.tsx | 2 +- src/app/(tabs)/story/index.tsx | 6 +++++- src/components/FilterDropdown/FilterDropdown.tsx | 11 +++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/app/(tabs)/search/index.tsx b/src/app/(tabs)/search/index.tsx index 96a6341..8020b95 100644 --- a/src/app/(tabs)/search/index.tsx +++ b/src/app/(tabs)/search/index.tsx @@ -162,7 +162,7 @@ function SearchScreen() { getRecentStory().then((viewed: StoryPreview[]) => setRecentlyViewed(viewed), ); - })().then(() => { }); + })().then(() => {}); }, []); useEffect(() => { diff --git a/src/app/(tabs)/story/index.tsx b/src/app/(tabs)/story/index.tsx index 9bc6fe3..60cc41a 100644 --- a/src/app/(tabs)/story/index.tsx +++ b/src/app/(tabs)/story/index.tsx @@ -83,7 +83,11 @@ function StoryScreen() { style={styles.genres} horizontal showsHorizontalScrollIndicator={false} - data={[...story.genre_medium, ...story.tone, ...story.topic].filter(tag => tag != null)} + data={[ + ...story.genre_medium, + ...story.tone, + ...story.topic, + ].filter(tag => tag != null)} keyExtractor={(_, index) => index.toString()} // Add a key extractor for performance optimization renderItem={({ item, index }) => ( 0 ? { borderColor: selectedBorderColor } : {}]} + style={[ + styles.dropdown, + value.length > 0 ? { borderColor: selectedBorderColor } : {}, + ]} value={value} placeholderStyle={[globalStyles.body1, styles.placeholderStyle]} selectedTextStyle={globalStyles.body1} @@ -42,7 +45,11 @@ function FilterDropdown({ valueField="value" placeholder={placeholder} renderRightIcon={() => ( - 0 ? selectedBorderColor : colors.darkGrey} name="arrow-drop-down" type="material" /> + 0 ? selectedBorderColor : colors.darkGrey} + name="arrow-drop-down" + type="material" + /> )} onChange={item => { if (item) {