mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
Adding the state of plugins to the main
This commit is contained in:
@@ -269,11 +269,15 @@ class Embed extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
auth: state.auth.toJS(),
|
||||
userData: state.user.toJS(),
|
||||
asset: state.asset.toJS()
|
||||
});
|
||||
const mapStateToProps = (state) => Object
|
||||
.keys(state)
|
||||
.reduce((entry, key) => {
|
||||
if (key !== 'apollo') {
|
||||
entry[key] = state[key].toJS();
|
||||
}
|
||||
console.log(entry);
|
||||
return entry;
|
||||
}, {});
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
requestConfirmEmail: () => dispatch(requestConfirmEmail()),
|
||||
|
||||
Reference in New Issue
Block a user