Skip to content

Commit

Permalink
Bugfix: fiat deeplinks (#648)
Browse files Browse the repository at this point in the history
* fix button info type color

* fix bug

* drop package
  • Loading branch information
estebanmino authored May 14, 2019
1 parent 32ff52b commit 0a0087b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions app/components/UI/EthInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ class EthInput extends Component {
*/
componentDidMount = () => {
const { transaction, collectibles } = this.props;
const { processedReadableValue } = this.processValue(transaction.readableValue);
switch (transaction.type) {
case 'TOKENS_TRANSACTION':
this.setState({
Expand All @@ -215,7 +216,7 @@ class EthInput extends Component {
},
...this.props.tokens
],
readableValue: transaction.readableValue
readableValue: processedReadableValue
});
break;
case 'ETHER_TRANSACTION':
Expand All @@ -226,28 +227,26 @@ class EthInput extends Component {
symbol: 'ETH'
}
],
readableValue: transaction.readableValue
readableValue: processedReadableValue
});
break;
case 'INDIVIDUAL_TOKEN_TRANSACTION':
this.setState({
assets: [transaction.selectedAsset],
readableValue: transaction.readableValue
readableValue: processedReadableValue
});
break;
case 'INDIVIDUAL_COLLECTIBLE_TRANSACTION':
this.setState({
assets: [transaction.selectedAsset],
readableValue: transaction.readableValue
assets: [transaction.selectedAsset]
});
break;
case 'CONTRACT_COLLECTIBLE_TRANSACTION': {
const collectiblesToShow = collectibles.filter(
collectible => collectible.address.toLowerCase() === transaction.selectedAsset.address.toLowerCase()
);
this.setState({
assets: collectiblesToShow,
readableValue: transaction.readableValue
assets: collectiblesToShow
});
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports[`StyledButton should render correctly on Android the button with type or
"padding": 15,
},
Object {
"backgroundColor": undefined,
"backgroundColor": "#037dd6",
},
null,
undefined,
Expand Down Expand Up @@ -203,7 +203,7 @@ exports[`StyledButton should render correctly on iOS the button with type orange
"padding": 15,
},
Object {
"backgroundColor": undefined,
"backgroundColor": "#037dd6",
},
undefined,
]
Expand Down
6 changes: 3 additions & 3 deletions app/components/UI/StyledButton/styledButtonStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const styles = StyleSheet.create({
color: colors.white
},
orange: {
backgroundColor: colors.blueFox
backgroundColor: colors.blue
},
orangeText: {
color: colors.white
},
infoText: {
color: colors.blueFox
color: colors.blue
},
confirm: {
backgroundColor: colors.blue,
Expand Down Expand Up @@ -73,7 +73,7 @@ const styles = StyleSheet.create({
info: {
backgroundColor: colors.white,
borderWidth: 1,
borderColor: colors.blueFox
borderColor: colors.blue
},
warningText: {
color: colors.red
Expand Down

0 comments on commit 0a0087b

Please sign in to comment.