Adding the state of plugins to the main

This commit is contained in:
Belen Curcio
2017-03-30 12:57:05 -03:00
parent 7efbdc8b59
commit a7def6fc2b
2 changed files with 14 additions and 8 deletions
+9 -5
View File
@@ -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()),