From b8e3957542f1805eb762a2acb62acf31c74e2dce Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Tue, 3 Dec 2019 17:34:16 -0330 Subject: [PATCH] Remove unneeded store connections (#7625) --- ui/app/components/ui/copyButton.js | 3 +-- ui/app/pages/create-account/import-account/index.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/app/components/ui/copyButton.js b/ui/app/components/ui/copyButton.js index d235fea04..14b54517b 100644 --- a/ui/app/components/ui/copyButton.js +++ b/ui/app/components/ui/copyButton.js @@ -1,6 +1,5 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' -import { connect } from 'react-redux' const copyToClipboard = require('copy-to-clipboard') const Tooltip = require('./tooltip') @@ -63,4 +62,4 @@ class CopyButton extends Component { } } -module.exports = connect()(CopyButton) +module.exports = CopyButton diff --git a/ui/app/pages/create-account/import-account/index.js b/ui/app/pages/create-account/import-account/index.js index 5ef837715..2d66c9601 100644 --- a/ui/app/pages/create-account/import-account/index.js +++ b/ui/app/pages/create-account/import-account/index.js @@ -1,7 +1,6 @@ import React, { Component } from 'react' const inherits = require('util').inherits const PropTypes = require('prop-types') -const connect = require('react-redux').connect import Select from 'react-select' // Subviews @@ -13,7 +12,7 @@ AccountImportSubview.contextTypes = { t: PropTypes.func, } -module.exports = connect()(AccountImportSubview) +module.exports = AccountImportSubview inherits(AccountImportSubview, Component)