Skip to content

Commit

Permalink
Merge pull request #8190 from Expensify/cmartins-textAlign
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mechler authored Mar 16, 2022
2 parents a6c2cf6 + 98640ec commit 6381caa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/ReportWelcomeText.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const ReportWelcomeText = (props) => {
<Text style={[styles.mt3, styles.mw100, styles.textAlignCenter]}>
{isPolicyExpenseChat && (
<>
<Text>
{/* Add align center style individually because of limited style inheritance in React Native https://reactnative.dev/docs/text#limited-style-inheritance */}
<Text style={styles.textAlignCenter}>
{props.translate('reportActionsView.beginningOfChatHistoryPolicyExpenseChatPartOne')}
</Text>
<Text style={[styles.textStrong]}>
Expand All @@ -100,7 +101,8 @@ const ReportWelcomeText = (props) => {
)}
{isChatRoom && (
<>
<Text>
{/* Add align center style individually because of limited style inheritance in React Native https://reactnative.dev/docs/text#limited-style-inheritance */}
<Text style={styles.textAlignCenter}>
{isResctrictedRoom
? `${props.translate('reportActionsView.beginningOfChatHistoryRestrictedPartOne')}`
: `${props.translate('reportActionsView.beginningOfChatHistoryPrivatePartOne')}`}
Expand All @@ -117,7 +119,8 @@ const ReportWelcomeText = (props) => {
)}
{isDefault && (
<>
<Text>
{/* Add align center style individually because of limited style inheritance in React Native https://reactnative.dev/docs/text#limited-style-inheritance */}
<Text style={styles.textAlignCenter}>
{props.translate('reportActionsView.beginningOfChatHistory')}
</Text>
{_.map(displayNamesWithTooltips, ({displayName, pronouns}, index) => (
Expand Down

0 comments on commit 6381caa

Please sign in to comment.