2021-08-05 09:00:21 +02:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-21 18:38:11 +01:00
|
|
|
import { selectHasChannels } from 'redux/selectors/claims';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { selectWalletIsEncrypted } from 'redux/selectors/wallet';
|
|
|
|
import { doWalletStatus } from 'redux/actions/wallet';
|
2021-08-06 09:43:21 +02:00
|
|
|
import { selectUser, selectUserVerifiedEmail } from 'redux/selectors/user';
|
2021-08-09 07:50:11 +02:00
|
|
|
|
2021-08-05 09:00:21 +02:00
|
|
|
import SettingAccount from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
|
|
|
walletEncrypted: selectWalletIsEncrypted(state),
|
2021-08-06 09:43:21 +02:00
|
|
|
user: selectUser(state),
|
2022-01-21 18:38:11 +01:00
|
|
|
hasChannels: selectHasChannels(state),
|
2021-08-05 09:00:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
doWalletStatus: () => dispatch(doWalletStatus()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SettingAccount);
|