|
|
|
@ -5,6 +5,7 @@ import { PageContainerFooter } from '../../ui/page-container'; |
|
|
|
|
import EditGasPopover from '../edit-gas-popover'; |
|
|
|
|
import { EDIT_GAS_MODES } from '../../../../shared/constants/gas'; |
|
|
|
|
import ErrorMessage from '../../ui/error-message'; |
|
|
|
|
import { TRANSACTION_TYPES } from '../../../../shared/constants/transaction'; |
|
|
|
|
import Dialog from '../../ui/dialog'; |
|
|
|
|
import { |
|
|
|
|
ConfirmPageContainerHeader, |
|
|
|
@ -128,6 +129,11 @@ export default class ConfirmPageContainer extends Component { |
|
|
|
|
const shouldDisplayWarning = |
|
|
|
|
contentComponent && disabled && (errorKey || errorMessage); |
|
|
|
|
|
|
|
|
|
const hideTitle = |
|
|
|
|
(currentTransaction.type === TRANSACTION_TYPES.CONTRACT_INTERACTION || |
|
|
|
|
currentTransaction.type === TRANSACTION_TYPES.DEPLOY_CONTRACT) && |
|
|
|
|
currentTransaction.txParams?.value === '0x0'; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="page-container"> |
|
|
|
|
<ConfirmPageContainerNavigation |
|
|
|
@ -194,6 +200,7 @@ export default class ConfirmPageContainer extends Component { |
|
|
|
|
rejectNText={this.context.t('rejectTxsN', [unapprovedTxCount])} |
|
|
|
|
origin={origin} |
|
|
|
|
ethGasPriceWarning={ethGasPriceWarning} |
|
|
|
|
hideTitle={hideTitle} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{shouldDisplayWarning && ( |
|
|
|
|