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 c5874e8 commit 2537dcf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/(tabs)/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function SearchScreen() {
getRecentStory().then((viewed: StoryPreview[]) =>
setRecentlyViewed(viewed),
);
})().then(() => { });
})().then(() => {});
}, []);

useEffect(() => {
Expand Down
6 changes: 5 additions & 1 deletion src/app/(tabs)/story/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
<View
Expand Down
11 changes: 9 additions & 2 deletions src/components/FilterDropdown/FilterDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ function FilterDropdown({
return (
<MultiSelect
mode="default"
style={[styles.dropdown, value.length > 0 ? { borderColor: selectedBorderColor } : {}]}
style={[
styles.dropdown,
value.length > 0 ? { borderColor: selectedBorderColor } : {},
]}
value={value}
placeholderStyle={[globalStyles.body1, styles.placeholderStyle]}
selectedTextStyle={globalStyles.body1}
Expand All @@ -42,7 +45,11 @@ function FilterDropdown({
valueField="value"
placeholder={placeholder}
renderRightIcon={() => (
<Icon color={value.length > 0 ? selectedBorderColor : colors.darkGrey} name="arrow-drop-down" type="material" />
<Icon
color={value.length > 0 ? selectedBorderColor : colors.darkGrey}
name="arrow-drop-down"
type="material"
/>
)}
onChange={item => {
if (item) {
Expand Down

0 comments on commit 2537dcf

Please sign in to comment.