Skip to content

Commit

Permalink
Fix "Text strings must be rendered within a <Text> component" (#2193)
Browse files Browse the repository at this point in the history
* Fix issue #2179

* Increase lineHeight on errors

* Fix props
  • Loading branch information
rickycodes authored Feb 2, 2021
1 parent 45b9717 commit f130af8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/components/UI/ApproveTransactionReview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const styles = StyleSheet.create({
error: {
color: colors.red,
fontSize: 12,
lineHeight: 16,
...fontStyles.normal,
textAlign: 'center'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TransactionReviewFeeCard extends PureComponent {
/**
* Total transaction value in fiat
*/
totalFiat: PropTypes.object,
totalFiat: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node, PropTypes.string]),
/**
* Transaction value in fiat before gas fee
*/
Expand Down Expand Up @@ -142,7 +142,7 @@ class TransactionReviewFeeCard extends PureComponent {
{!!totalFiat && this.renderIfGasEstimationReady(totalAmount)}
</Summary.Row>
<Summary.Row end last>
{this.renderIfGasEstimationReady(equivalentTotalAmount)}
{this.renderIfGasEstimationReady(<Text bold>{equivalentTotalAmount}</Text>)}
</Summary.Row>
</Summary>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const styles = StyleSheet.create({
error: {
color: colors.red,
fontSize: 12,
lineHeight: 16,
...fontStyles.normal,
textAlign: 'center'
},
Expand Down
1 change: 1 addition & 0 deletions app/components/Views/SendFlow/Confirm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const styles = StyleSheet.create({
error: {
color: colors.red,
fontSize: 12,
lineHeight: 16,
...fontStyles.normal,
textAlign: 'center'
},
Expand Down

0 comments on commit f130af8

Please sign in to comment.