diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index df8a1d895..9330d0a95 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2142,6 +2142,9 @@ "metrics": { "message": "Metrics" }, + "mismatchAccount": { + "message": "Your selected account ($1) is different than the account trying to sign ($2)" + }, "mismatchedChainLinkText": { "message": "verify the network details", "description": "Serves as link text for the 'mismatchedChain' key. This text will be embedded inside the translation for that key." diff --git a/ui/components/app/signature-request-original/signature-request-original.component.js b/ui/components/app/signature-request-original/signature-request-original.component.js index 9d46e92d1..d6b432035 100644 --- a/ui/components/app/signature-request-original/signature-request-original.component.js +++ b/ui/components/app/signature-request-original/signature-request-original.component.js @@ -5,7 +5,13 @@ import { ObjectInspector } from 'react-inspector'; import LedgerInstructionField from '../ledger-instruction-field'; import { MESSAGE_TYPE } from '../../../../shared/constants/app'; -import { getURLHostName, sanitizeString } from '../../../helpers/utils/util'; +import { + getURLHostName, + sanitizeString, + ///: BEGIN:ONLY_INCLUDE_IN(mmi) + shortenAddress, + ///: END:ONLY_INCLUDE_IN +} from '../../../helpers/utils/util'; import { stripHexPrefix } from '../../../../shared/modules/hexstring-utils'; import Button from '../../ui/button'; import SiteOrigin from '../../ui/site-origin'; @@ -17,6 +23,13 @@ import { FONT_WEIGHT, TEXT_ALIGN, TextColor, + ///: BEGIN:ONLY_INCLUDE_IN(mmi) + IconColor, + DISPLAY, + BLOCK_SIZES, + TextVariant, + BackgroundColor, + ///: END:ONLY_INCLUDE_IN } from '../../../helpers/constants/design-system'; import { NETWORK_TYPES } from '../../../../shared/constants/network'; import { Numeric } from '../../../../shared/modules/Numeric'; @@ -26,6 +39,11 @@ import SecurityProviderBannerMessage from '../security-provider-banner-message/s import { SECURITY_PROVIDER_MESSAGE_SEVERITIES } from '../security-provider-banner-message/security-provider-banner-message.constants'; import { formatCurrency } from '../../../helpers/utils/confirm-tx.util'; import { getValueFromWeiHex } from '../../../../shared/modules/conversion.utils'; + +///: BEGIN:ONLY_INCLUDE_IN(mmi) +import { Icon, IconName, Text } from '../../component-library'; +import Box from '../../ui/box/box'; +///: END:ONLY_INCLUDE_IN import SignatureRequestOriginalWarning from './signature-request-original-warning'; export default class SignatureRequestOriginal extends Component { @@ -55,6 +73,9 @@ export default class SignatureRequestOriginal extends Component { showRejectTransactionsConfirmationModal: PropTypes.func.isRequired, cancelAll: PropTypes.func.isRequired, provider: PropTypes.object, + ///: BEGIN:ONLY_INCLUDE_IN(mmi) + selectedAccount: PropTypes.object, + ///: END:ONLY_INCLUDE_IN }; state = { @@ -92,6 +113,16 @@ export default class SignatureRequestOriginal extends Component { } }; + renderAccountInfo = () => { + return ( +