mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Adding camelcase for plugin reducers 🎉 <3
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
removeCommentClassName
|
||||
} from 'plugin-api/alpha/client/actions';
|
||||
|
||||
const mapStateToProps = ({comment, ['coral-plugin-offtopic']: offTopic}) => ({
|
||||
const mapStateToProps = ({comment, coralPluginOfftopic: offTopic}) => ({
|
||||
commentClassNames: comment.commentClassNames,
|
||||
checked: offTopic.checked
|
||||
});
|
||||
|
||||
@@ -3,7 +3,9 @@ import {bindActionCreators} from 'redux';
|
||||
import ViewingOptions from '../components/ViewingOptions';
|
||||
import {openViewingOptions, closeViewingOptions} from '../actions';
|
||||
|
||||
const mapStateToProps = ({['coral-plugin-viewing-options']: state}) => ({open: state.open});
|
||||
const mapStateToProps = ({coralPluginViewingOptions: state}) => ({
|
||||
open: state.open
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators({openViewingOptions, closeViewingOptions}, dispatch);
|
||||
|
||||
Reference in New Issue
Block a user