mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove recompose (#8097)
This commit is contained in:
parent
54f0830324
commit
169ab8adc9
@ -154,7 +154,6 @@
|
||||
"react-transition-group": "^1.2.1",
|
||||
"react-trigger-change": "^1.0.2",
|
||||
"readable-stream": "^2.3.3",
|
||||
"recompose": "^0.25.0",
|
||||
"redux": "^4.0.5",
|
||||
"redux-thunk": "^2.3.0",
|
||||
"reselect": "^3.0.1",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
toggleAccountMenu,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
|
||||
import AppHeader from './app-header.component'
|
||||
import * as actions from '../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import DaiMigrationNotification from './dai-migration-notification.component'
|
||||
import withTokenTracker from '../../../helpers/higher-order-components/with-token-tracker'
|
||||
import { getSelectedAddress, getDaiV1Token } from '../../../selectors/selectors'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { connect } from 'react-redux'
|
||||
import * as actions from '../../../store/actions'
|
||||
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
|
||||
import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import * as actions from '../../../store/actions'
|
||||
import { Dropdown, DropdownMenuItem } from './components/dropdown'
|
||||
import NetworkDropdownIcon from './components/network-dropdown-icon'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import ethUtil from 'ethereumjs-util'
|
||||
import { multiplyCurrencies } from '../../../../helpers/utils/conversion-util'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import ConfirmDeleteNetwork from './confirm-delete-network.component'
|
||||
import { delRpcTarget } from '../../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import ConfirmRemoveAccount from './confirm-remove-account.component'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import { removeAccount } from '../../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import ConfirmResetAccount from './confirm-reset-account.component'
|
||||
import { resetAccount } from '../../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import DisconnectAccount from './disconnect-account.component'
|
||||
import { getCurrentAccountWithSendEtherInfo } from '../../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import DisconnectAll from './disconnect-all.component'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import EditApprovalPermission from './edit-approval-permission.component'
|
||||
import { getSelectedIdentity } from '../../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import MetaMetricsOptInModal from './metametrics-opt-in-modal.component'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
import { setParticipateInMetaMetrics } from '../../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import RejectTransactionsModal from './reject-transactions.component'
|
||||
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
|
||||
import * as actions from '../../../store/actions'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import TransactionListItem from './transaction-list-item.component'
|
||||
import { setSelectedToken, showModal, showSidebar, getContractMethodData } from '../../../store/actions'
|
||||
import { hexToDecimal } from '../../../helpers/utils/conversions.util'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import TransactionViewBalance from './transaction-view-balance.component'
|
||||
import {
|
||||
getSelectedToken,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import WalletView from './wallet-view.component'
|
||||
import { hideSidebar, setSelectedToken } from '../../../store/actions'
|
||||
import { getSelectedAddress, getSelectedAccount } from '../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import withTokenTracker from '../../../helpers/higher-order-components/with-token-tracker'
|
||||
import TokenBalance from './token-balance.component'
|
||||
import { getSelectedAddress } from '../../../selectors/selectors'
|
||||
|
@ -2,7 +2,7 @@ import { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import PropTypes from 'prop-types'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import {
|
||||
getCurrentNetworkId,
|
||||
getSelectedAsset,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import ConfirmAddSuggestedToken from './confirm-add-suggested-token.component'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { addToken, removeSuggestedTokens } from '../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
contractExchangeRateSelector,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { goHome, decryptMsg, cancelDecryptMsg, decryptMsgInline } from '../../store/actions'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { goHome, encryptionPublicKeyMsg, cancelEncryptionPublicKeyMsg } from '../../store/actions'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { updateSend } from '../../store/actions'
|
||||
import { clearConfirmTransaction } from '../../ducks/confirm-transaction/confirm-transaction.duck'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import ConfirmSendToken from './confirm-send-token.component'
|
||||
import { clearConfirmTransaction } from '../../ducks/confirm-transaction/confirm-transaction.duck'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import ConfirmTokenTransactionBase from './confirm-token-transaction-base.component'
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import contractMap from 'eth-contract-metadata'
|
||||
import ConfirmTransactionBase from './confirm-transaction-base.component'
|
||||
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
|
||||
import React, { Component } from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import * as actions from '../../store/actions'
|
||||
import txHelper from '../../../lib/tx-helper'
|
||||
import log from 'loglevel'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
setTransactionToConfirm,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import * as actions from '../../../store/actions'
|
||||
import FileInput from 'react-simple-file-input'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import * as actions from '../../../store/actions'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { setFirstTimeFlowType } from '../../../store/actions'
|
||||
import { getFirstTimeFlowTypeRoute } from '../first-time-flow.selectors'
|
||||
import Welcome from './select-action.component'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { closeWelcomeScreen } from '../../../store/actions'
|
||||
import Welcome from './welcome.component'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Home from './home.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { unconfirmedTransactionsCountSelector } from '../../selectors/confirm-transaction'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Lock from './lock.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { lockMetamask } from '../../store/actions'
|
||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import { Route, Switch, withRouter, matchPath } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import * as actions from '../../store/actions'
|
||||
import log from 'loglevel'
|
||||
import IdleTimer from 'react-idle-timer'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { connect } from 'react-redux'
|
||||
import SendEther from './send.component'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
|
||||
import {
|
||||
getAmountConversionRate,
|
||||
|
@ -22,7 +22,7 @@ proxyquire('../send.container.js', {
|
||||
},
|
||||
},
|
||||
'react-router-dom': { withRouter: () => {} },
|
||||
'recompose': { compose: (_, arg2) => () => arg2() },
|
||||
'redux': { compose: (_, arg2) => () => arg2() },
|
||||
'../../store/actions': actionSpies,
|
||||
'../../ducks/send/send.duck': duckActionSpies,
|
||||
'./send.utils.js': {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import AdvancedTab from './advanced-tab.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import AddContact from './add-contact.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { addToAddressBook, showQrScanner, qrCodeDetected } from '../../../../store/actions'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import ContactListTab from './contact-list-tab.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { getAddressBook } from '../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import EditContact from './edit-contact.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { getAddressBookEntry } from '../../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import ViewContact from './my-accounts.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { accountsWithSendEtherInfoSelector } from '../../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import ViewContact from './view-contact.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { getAddressBookEntry } from '../../../../selectors/selectors'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import NetworksTab from './networks-tab.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import SecurityTab from './security-tab.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Settings from './settings.component'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { getAddressBookEntryName } from '../../selectors/selectors'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux'
|
||||
import { withRouter } from 'react-router-dom'
|
||||
import { compose } from 'recompose'
|
||||
import { compose } from 'redux'
|
||||
import { getEnvironmentType } from '../../../../app/scripts/lib/util'
|
||||
import { ENVIRONMENT_TYPE_POPUP } from '../../../../app/scripts/lib/enums'
|
||||
import { DEFAULT_ROUTE, RESTORE_VAULT_ROUTE } from '../../helpers/constants/routes'
|
||||
|
10
yarn.lock
10
yarn.lock
@ -23797,16 +23797,6 @@ rechoir@^0.6.2:
|
||||
dependencies:
|
||||
resolve "^1.1.6"
|
||||
|
||||
recompose@^0.25.0:
|
||||
version "0.25.1"
|
||||
resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.25.1.tgz#5eb9d6cf6e25a9ffad73cbbae5658b5b55d6e728"
|
||||
integrity sha512-EwFAv6UBrHbLIsIKHUZJ+BKdjTmyEsIrRlGO3R7PKu0S7hkgNznVDRvb+1upQUntURtBvxhYnTVQ3AcWOlsmWA==
|
||||
dependencies:
|
||||
change-emitter "^0.1.2"
|
||||
fbjs "^0.8.1"
|
||||
hoist-non-react-statics "^2.3.1"
|
||||
symbol-observable "^1.0.4"
|
||||
|
||||
"recompose@^0.26.0 || ^0.27.0":
|
||||
version "0.27.0"
|
||||
resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.27.0.tgz#8230ebd651bf1159097006f79083fe224b1501cf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user