mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
c7bb906b03
* Added code fencing in account details modal and selected accounts * Fixed pipeline issues * Remove one code fence
30 lines
938 B
JavaScript
30 lines
938 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
getSelectedIdentity,
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
getAccountType,
|
|
///: END:ONLY_INCLUDE_IN
|
|
} from '../../../selectors';
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
import {
|
|
getCustodyAccountDetails,
|
|
getIsCustodianSupportedChain,
|
|
} from '../../../selectors/institutional/selectors';
|
|
import { getProviderConfig } from '../../../ducks/metamask/metamask';
|
|
///: END:ONLY_INCLUDE_IN
|
|
import SelectedAccount from './selected-account.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
selectedIdentity: getSelectedIdentity(state),
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
accountType: getAccountType(state),
|
|
accountDetails: getCustodyAccountDetails(state),
|
|
provider: getProviderConfig(state),
|
|
isCustodianSupportedChain: getIsCustodianSupportedChain(state),
|
|
///: END:ONLY_INCLUDE_IN
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(SelectedAccount);
|