diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index df3211fd2..406c5b231 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -19,7 +19,7 @@ "disconnectSite": { "message": "Disconnect $1?" }, - "disconnectAccountConfirmationDescription": { + "disconnectSiteConfirmationDescription": { "message": "Are you sure you want to disconnect? You may lose site functionality." }, "dismiss": { diff --git a/ui/app/pages/connected-sites/connected-sites.component.js b/ui/app/pages/connected-sites/connected-sites.component.js index 650ac5f5c..b8a1238c6 100644 --- a/ui/app/pages/connected-sites/connected-sites.component.js +++ b/ui/app/pages/connected-sites/connected-sites.component.js @@ -2,7 +2,6 @@ import PropTypes from 'prop-types' import React, { Component } from 'react' import ConnectedSitesList from '../../components/app/connected-sites-list' import Popover from '../../components/ui/popover/popover.component' -import { DEFAULT_ROUTE } from '../../helpers/constants/routes' import Button from '../../components/ui/button' export default class ConnectSites extends Component { @@ -15,10 +14,10 @@ export default class ConnectSites extends Component { } static propTypes = { - connectedDomains: PropTypes.arrayOf(PropTypes.object).isRequired, accountLabel: PropTypes.string.isRequired, - disconnectAccount: PropTypes.func.isRequired, - history: PropTypes.object.isRequired, + closePopover: PropTypes.func.isRequired, + connectedDomains: PropTypes.arrayOf(PropTypes.object).isRequired, + disconnectSite: PropTypes.func.isRequired, tabToConnect: PropTypes.object, legacyExposeAccount: PropTypes.func.isRequired, getOpenMetamaskTabsIds: PropTypes.func.isRequired, @@ -49,10 +48,10 @@ export default class ConnectSites extends Component { } disconnect = () => { - const { disconnectAccount } = this.props + const { disconnectSite } = this.props const { sitePendingDisconnect } = this.state - disconnectAccount(sitePendingDisconnect.domainKey) + disconnectSite(sitePendingDisconnect.domainKey) this.clearSitePendingDisconnect() } @@ -66,7 +65,7 @@ export default class ConnectSites extends Component { } render () { - const { accountLabel, history, legacyExposeAccount, tabToConnect, connectedDomains } = this.props + const { accountLabel, closePopover, connectedDomains, legacyExposeAccount, tabToConnect } = this.props const { t } = this.context const { sitePendingDisconnect } = this.state return ( @@ -74,8 +73,8 @@ export default class ConnectSites extends Component { ? ( history.push(DEFAULT_ROUTE)} + subtitle={t('disconnectSiteConfirmationDescription')} + onClose={closePopover} footer={( <>