Skip to content

Commit

Permalink
Fix small styling bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 22, 2024
1 parent ea1016a commit 0fdf1de
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/app/(tabs)/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,20 @@ function HomeScreen() {

{featuredStories.length > 0 && (
<View>
<Text style={[globalStyles.h2]}>Featured Stories</Text>
{featuredStoriesDescription != null &&
featuredStoriesDescription.length > 0 && (
<>
<Text style={[globalStyles.h3, { paddingVertical: 16 }]}>{featuredStoriesHeader}</Text>
<Text style={[globalStyles.body1, styles.featuredDescription]}>
{featuredStoriesDescription}
</Text>
</>
<Text style={[globalStyles.h2, { paddingBottom: 16 }]}>
Featured Stories
</Text>
{featuredStoriesHeader != null && featuredStoriesHeader != '' && (
<Text style={[globalStyles.h3, { paddingBottom: 16 }]}>
{featuredStoriesHeader}
</Text>
)}
{featuredStoriesHeader != '' &&
featuredStoriesDescription != null &&
featuredStoriesDescription != '' && (
<Text style={[globalStyles.body1, styles.featuredDescription]}>
{featuredStoriesDescription}
</Text>
)}
<View style={{ marginRight: 24 }}>
{featuredStories.map(story => (
Expand Down

0 comments on commit 0fdf1de

Please sign in to comment.