diff --git a/common/components/ExtendedNotifications/TransactionSucceeded.js b/common/components/ExtendedNotifications/TransactionSucceeded.js index 5801e8d0..41cb83fb 100644 --- a/common/components/ExtendedNotifications/TransactionSucceeded.js +++ b/common/components/ExtendedNotifications/TransactionSucceeded.js @@ -1,13 +1,18 @@ import React from 'react'; -import { ETHTxExplorer } from 'config/data'; +import type { BlockExplorerConfig } from 'config.data'; import translate from 'translations'; + export type TransactionSucceededProps = { - txHash: string + txHash: string, + blockExplorer: BlockExplorerConfig }; -const TransactionSucceeded = ({ txHash }: TransactionSucceededProps) => { +const TransactionSucceeded = ({ + txHash, + blockExplorer +}: TransactionSucceededProps) => { // const checkTxLink = `https://www.myetherwallet.com?txHash=${txHash}/#check-tx-status`; - const txHashLink = ETHTxExplorer(txHash); + const txHashLink = blockExplorer.tx(txHash); return (
diff --git a/common/components/Header/components/Navigation.jsx b/common/components/Header/components/Navigation.jsx index f3bcadf8..bcf9eb88 100644 --- a/common/components/Header/components/Navigation.jsx +++ b/common/components/Header/components/Navigation.jsx @@ -39,7 +39,7 @@ const tabs = [ } ]; -export default class TabsOptions extends Component { +export default class Navigation extends Component { constructor(props) { super(props); this.state = { @@ -49,7 +49,8 @@ export default class TabsOptions extends Component { } static propTypes = { - location: PropTypes.object + location: PropTypes.object, + color: PropTypes.string }; scrollLeft() {} @@ -57,12 +58,19 @@ export default class TabsOptions extends Component { scrollRight() {} render() { - const { location } = this.props; + const { location, color } = this.props; + const borderStyle = {}; + + if (color) { + borderStyle.borderTopColor = color; + } + return (