2021-08-05 09:00:21 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { selectMyChannelClaims } from 'redux/selectors/claims';
|
|
|
|
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-10-01 14:10:27 +02:00
|
|
|
myChannels: selectMyChannelClaims(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);
|