You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
781 B
28 lines
781 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { compose } from 'redux';
|
||
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
||
4 years ago
|
import {
|
||
|
getCurrentChainId,
|
||
|
getRpcPrefsForCurrentProvider,
|
||
|
} from '../../../../selectors';
|
||
4 years ago
|
import { removeAccount } from '../../../../store/actions';
|
||
|
import ConfirmRemoveAccount from './confirm-remove-account.component';
|
||
7 years ago
|
|
||
5 years ago
|
const mapStateToProps = (state) => {
|
||
6 years ago
|
return {
|
||
4 years ago
|
chainId: getCurrentChainId(state),
|
||
|
rpcPrefs: getRpcPrefsForCurrentProvider(state),
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
7 years ago
|
return {
|
||
|
removeAccount: (address) => dispatch(removeAccount(address)),
|
||
4 years ago
|
};
|
||
|
};
|
||
7 years ago
|
|
||
6 years ago
|
export default compose(
|
||
|
withModalProps,
|
||
4 years ago
|
connect(mapStateToProps, mapDispatchToProps),
|
||
4 years ago
|
)(ConfirmRemoveAccount);
|