mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 06:31:35 +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()),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user