@ -41,7 +41,6 @@ import ViewOnEtherScanLink from './view-on-ether-scan-link'
export default function AwaitingSwap ( {
export default function AwaitingSwap ( {
swapComplete ,
swapComplete ,
errorKey ,
errorKey ,
symbol ,
txHash ,
txHash ,
networkId ,
networkId ,
tokensReceived ,
tokensReceived ,
@ -189,7 +188,7 @@ export default function AwaitingSwap ({
headerText = t ( 'swapProcessing' )
headerText = t ( 'swapProcessing' )
statusImage = < PulseLoader / >
statusImage = < PulseLoader / >
submitText = t ( 'swapsViewInActivity' )
submitText = t ( 'swapsViewInActivity' )
descriptionText = t ( 'swapOnceTransactionHasProcess' , [ < span key = "swapOnceTransactionHasProcess-1" className = "awaiting-swap__amount-and-symbol" > { symbol } < / s p a n > ] )
descriptionText = t ( 'swapOnceTransactionHasProcess' , [ < span key = "swapOnceTransactionHasProcess-1" className = "awaiting-swap__amount-and-symbol" > { destinationTokenInfo . symbol } < / s p a n > ] )
content = (
content = (
< >
< >
< div
< div
@ -214,8 +213,8 @@ export default function AwaitingSwap ({
} else if ( ! errorKey && swapComplete ) {
} else if ( ! errorKey && swapComplete ) {
headerText = t ( 'swapTransactionComplete' )
headerText = t ( 'swapTransactionComplete' )
statusImage = < SwapSuccessIcon / >
statusImage = < SwapSuccessIcon / >
submitText = t ( 'swapViewToken' , [ symbol ] )
submitText = t ( 'swapViewToken' , [ destinationTokenInfo . symbol ] )
descriptionText = t ( 'swapTokenAvailable' , [ < span key = "swapTokenAvailable-2" className = "awaiting-swap__amount-and-symbol" > { ` ${ tokensReceived || '' } ${ symbol } ` } < / s p a n > ] )
descriptionText = t ( 'swapTokenAvailable' , [ < span key = "swapTokenAvailable-2" className = "awaiting-swap__amount-and-symbol" > { ` ${ tokensReceived || '' } ${ destinationTokenInfo . symbol } ` } < / s p a n > ] )
content = blockExplorerUrl && (
content = blockExplorerUrl && (
< ViewOnEtherScanLink
< ViewOnEtherScanLink
txHash = { txHash }
txHash = { txHash }
@ -273,7 +272,6 @@ export default function AwaitingSwap ({
AwaitingSwap . propTypes = {
AwaitingSwap . propTypes = {
swapComplete : PropTypes . bool ,
swapComplete : PropTypes . bool ,
symbol : PropTypes . string . isRequired ,
networkId : PropTypes . string . isRequired ,
networkId : PropTypes . string . isRequired ,
txHash : PropTypes . string ,
txHash : PropTypes . string ,
tokensReceived : PropTypes . string ,
tokensReceived : PropTypes . string ,