|
|
@ -33,6 +33,7 @@ import { |
|
|
|
SWAP_FAILED_ERROR, |
|
|
|
SWAP_FAILED_ERROR, |
|
|
|
ERROR_FETCHING_QUOTES, |
|
|
|
ERROR_FETCHING_QUOTES, |
|
|
|
QUOTES_NOT_AVAILABLE_ERROR, |
|
|
|
QUOTES_NOT_AVAILABLE_ERROR, |
|
|
|
|
|
|
|
CONTRACT_DATA_DISABLED_ERROR, |
|
|
|
OFFLINE_FOR_MAINTENANCE, |
|
|
|
OFFLINE_FOR_MAINTENANCE, |
|
|
|
SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP, |
|
|
|
SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP, |
|
|
|
} from '../../../../shared/constants/swaps'; |
|
|
|
} from '../../../../shared/constants/swaps'; |
|
|
@ -184,6 +185,11 @@ export default function AwaitingSwap({ |
|
|
|
descriptionText = t('swapQuotesNotAvailableErrorDescription'); |
|
|
|
descriptionText = t('swapQuotesNotAvailableErrorDescription'); |
|
|
|
submitText = t('tryAgain'); |
|
|
|
submitText = t('tryAgain'); |
|
|
|
statusImage = <SwapFailureIcon />; |
|
|
|
statusImage = <SwapFailureIcon />; |
|
|
|
|
|
|
|
} else if (errorKey === CONTRACT_DATA_DISABLED_ERROR) { |
|
|
|
|
|
|
|
headerText = t('swapContractDataDisabledErrorTitle'); |
|
|
|
|
|
|
|
descriptionText = t('swapContractDataDisabledErrorDescription'); |
|
|
|
|
|
|
|
submitText = t('tryAgain'); |
|
|
|
|
|
|
|
statusImage = <SwapFailureIcon />; |
|
|
|
} else if (!errorKey && !swapComplete) { |
|
|
|
} else if (!errorKey && !swapComplete) { |
|
|
|
headerText = t('swapProcessing'); |
|
|
|
headerText = t('swapProcessing'); |
|
|
|
statusImage = <PulseLoader />; |
|
|
|
statusImage = <PulseLoader />; |
|
|
@ -283,6 +289,7 @@ AwaitingSwap.propTypes = { |
|
|
|
ERROR_FETCHING_QUOTES, |
|
|
|
ERROR_FETCHING_QUOTES, |
|
|
|
QUOTES_NOT_AVAILABLE_ERROR, |
|
|
|
QUOTES_NOT_AVAILABLE_ERROR, |
|
|
|
OFFLINE_FOR_MAINTENANCE, |
|
|
|
OFFLINE_FOR_MAINTENANCE, |
|
|
|
|
|
|
|
CONTRACT_DATA_DISABLED_ERROR, |
|
|
|
]), |
|
|
|
]), |
|
|
|
submittingSwap: PropTypes.bool, |
|
|
|
submittingSwap: PropTypes.bool, |
|
|
|
inputValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), |
|
|
|
inputValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), |
|
|
|