2021-08-05 09:00:21 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-11-08 07:27:14 +01:00
|
|
|
import { selectHasChannels } from 'redux/selectors/claims';
|
2021-10-17 10:36:14 +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
|
|
|
import { selectLanguage } from 'redux/selectors/settings';
|
|
|
|
|
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),
|
2021-11-08 07:27:14 +01:00
|
|
|
hasChannels: selectHasChannels(state),
|
2021-08-09 07:50:11 +02:00
|
|
|
language: selectLanguage(state),
|
2021-08-05 09:00:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
doWalletStatus: () => dispatch(doWalletStatus()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SettingAccount);
|