@ -4,6 +4,7 @@ import SenderToRecipient from '../../ui/sender-to-recipient';
import { PageContainerFooter } from '../../ui/page-container' ;
import { PageContainerFooter } from '../../ui/page-container' ;
import EditGasPopover from '../edit-gas-popover' ;
import EditGasPopover from '../edit-gas-popover' ;
import { EDIT _GAS _MODES } from '../../../../shared/constants/gas' ;
import { EDIT _GAS _MODES } from '../../../../shared/constants/gas' ;
import ErrorMessage from '../../ui/error-message' ;
import Dialog from '../../ui/dialog' ;
import Dialog from '../../ui/dialog' ;
import {
import {
ConfirmPageContainerHeader ,
ConfirmPageContainerHeader ,
@ -124,6 +125,9 @@ export default class ConfirmPageContainer extends Component {
const showAddToAddressDialog =
const showAddToAddressDialog =
! contact . name && toAddress && ! isOwnedAccount && ! hideSenderToRecipient ;
! contact . name && toAddress && ! isOwnedAccount && ! hideSenderToRecipient ;
const shouldDisplayWarning =
contentComponent && disabled && ( errorKey || errorMessage ) ;
return (
return (
< div className = "page-container" >
< div className = "page-container" >
< ConfirmPageContainerNavigation
< ConfirmPageContainerNavigation
@ -192,6 +196,11 @@ export default class ConfirmPageContainer extends Component {
ethGasPriceWarning = { ethGasPriceWarning }
ethGasPriceWarning = { ethGasPriceWarning }
/ >
/ >
) }
) }
{ shouldDisplayWarning && (
< div className = "confirm-approve-content__warning" >
< ErrorMessage errorKey = { errorKey } / >
< / d i v >
) }
{ contentComponent && (
{ contentComponent && (
< PageContainerFooter
< PageContainerFooter
onCancel = { onCancel }
onCancel = { onCancel }