Skip to content

Commit

Permalink
[FIX] Fix undefined values in CustomGas component (#2977)
Browse files Browse the repository at this point in the history
* Remove CustomGas component

* Removing custom gas breaks action sheet layout. Temporarily add View tag to fix this for now.

* Check lint status

* Prettify Approve view

* Remove unused warningGasPriceHigh

* update snapshot

* completely remove CustomGas

Co-authored-by: ricky <ricky.miller@gmail.com>
  • Loading branch information
Cal-L and rickycodes authored Sep 8, 2021
1 parent a19b31c commit 8f5da8f
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 1,245 deletions.
12 changes: 0 additions & 12 deletions app/components/UI/ApproveTransactionReview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ class ApproveTransactionReview extends PureComponent {
* Error coming from gas component
*/
gasError: PropTypes.string,
/**
* Warning coming from high gas set in CustomGas component
*/
warningGasPriceHigh: PropTypes.string,
/**
* Primary currency, either ETH or Fiat
*/
Expand Down Expand Up @@ -512,7 +508,6 @@ class ApproveTransactionReview extends PureComponent {
transaction: { origin },
network,
over,
warningGasPriceHigh,
EIP1559GasData,
LegacyGasData,
gasEstimateType,
Expand Down Expand Up @@ -627,13 +622,6 @@ class ApproveTransactionReview extends PureComponent {
</TouchableOpacity>
</View>
)}
{!!warningGasPriceHigh && (
<View style={styles.errorWrapper}>
<Text reset style={styles.error}>
{warningGasPriceHigh}
</Text>
</View>
)}
{!gasError && (
<TouchableOpacity
style={styles.actionTouchable}
Expand Down
38 changes: 0 additions & 38 deletions app/components/UI/CustomGas/__snapshots__/index.test.tsx.snap

This file was deleted.

Loading

0 comments on commit 8f5da8f

Please sign in to comment.