aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu/account-menu.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/account-menu/account-menu.container.js')
-rw-r--r--ui/app/components/account-menu/account-menu.container.js62
1 files changed, 0 insertions, 62 deletions
diff --git a/ui/app/components/account-menu/account-menu.container.js b/ui/app/components/account-menu/account-menu.container.js
deleted file mode 100644
index 93246ec72..000000000
--- a/ui/app/components/account-menu/account-menu.container.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import { connect } from 'react-redux'
-import { compose } from 'recompose'
-import { withRouter } from 'react-router-dom'
-import {
- toggleAccountMenu,
- showAccountDetail,
- hideSidebar,
- lockMetamask,
- hideWarning,
- showConfigPage,
- showInfoPage,
- showModal,
-} from '../../actions'
-import { getMetaMaskAccounts } from '../../selectors'
-import AccountMenu from './account-menu.component'
-
-function mapStateToProps (state) {
- const { metamask: { selectedAddress, isAccountMenuOpen, keyrings, identities } } = state
-
- return {
- selectedAddress,
- isAccountMenuOpen,
- keyrings,
- identities,
- accounts: getMetaMaskAccounts(state),
- }
-}
-
-function mapDispatchToProps (dispatch) {
- return {
- toggleAccountMenu: () => dispatch(toggleAccountMenu()),
- showAccountDetail: address => {
- dispatch(showAccountDetail(address))
- dispatch(hideSidebar())
- dispatch(toggleAccountMenu())
- },
- lockMetamask: () => {
- dispatch(lockMetamask())
- dispatch(hideWarning())
- dispatch(hideSidebar())
- dispatch(toggleAccountMenu())
- },
- showConfigPage: () => {
- dispatch(showConfigPage())
- dispatch(hideSidebar())
- dispatch(toggleAccountMenu())
- },
- showInfoPage: () => {
- dispatch(showInfoPage())
- dispatch(hideSidebar())
- dispatch(toggleAccountMenu())
- },
- showRemoveAccountConfirmationModal: identity => {
- return dispatch(showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', identity }))
- },
- }
-}
-
-export default compose(
- withRouter,
- connect(mapStateToProps, mapDispatchToProps)
-)(AccountMenu)