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()),
@@ -1,9 +1,11 @@
.Respect {
display: inline-block;
button {
padding: 10px 2px;
border-radius: 3px;
background: #ffa16e;
color: #161616;
margin: 5px 10px 5px 0px;
background: none;
padding: 0px;
border: none;
font-size: inherit;
}
}