Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed May 16, 2023
1 parent 898cf53 commit ca85fad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ const Header = (props) => (
<View style={styles.mw100}>
{_.isString(props.title)
? Boolean(props.title) && (
<Text
numberOfLines={2}
style={[styles.headerText, styles.textLarge, ...props.textStyles]}
>
{props.title}
</Text>
<Text
numberOfLines={2}
style={[styles.headerText, styles.textLarge, ...props.textStyles]}
>
{props.title}
</Text>
)
: props.title}
{/* If there's no subtitle then display a fragment to avoid an empty space which moves the main title */}
Expand Down

0 comments on commit ca85fad

Please sign in to comment.