Skip to content

Commit

Permalink
Merge pull request #40726 from Expensify/cmartins-conditionallyRender…
Browse files Browse the repository at this point in the history
…From

Conditionally render from on report header
  • Loading branch information
robertjchen authored Apr 29, 2024
2 parents 0e84d3c + eeee40f commit 64d2253
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ParentNavigationSubtitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ function ParentNavigationSubtitle({parentNavigationSubtitleData, parentReportAct
style={[styles.optionAlternateText]}
numberOfLines={1}
>
<Text style={[styles.optionAlternateText, styles.textLabelSupporting]}>{`${translate('threads.from')} `}</Text>
<Text style={[styles.optionAlternateText, styles.textLabelSupporting, styles.link]}>{reportName}</Text>
{Boolean(reportName) && (
<>
<Text style={[styles.optionAlternateText, styles.textLabelSupporting]}>{`${translate('threads.from')} `}</Text>
<Text style={[styles.optionAlternateText, styles.textLabelSupporting, styles.link]}>{reportName}</Text>
</>
)}
{Boolean(workspaceName) && <Text style={[styles.optionAlternateText, styles.textLabelSupporting]}>{` ${translate('threads.in')} ${workspaceName}`}</Text>}
</Text>
</PressableWithoutFeedback>
Expand Down

0 comments on commit 64d2253

Please sign in to comment.