mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
replaced eslint:recommended with prettier
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
import {connect, withFragments} from 'plugin-api/beta/client/hocs';
|
||||
import {bindActionCreators} from 'redux';
|
||||
import { connect, withFragments } from 'plugin-api/beta/client/hocs';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import ViewingOptions from '../components/ViewingOptions';
|
||||
import {openMenu, closeMenu} from '../actions';
|
||||
import {compose, gql} from 'react-apollo';
|
||||
import {getSlotFragmentSpreads} from 'plugin-api/beta/client/utils';
|
||||
import { openMenu, closeMenu } from '../actions';
|
||||
import { compose, gql } from 'react-apollo';
|
||||
import { getSlotFragmentSpreads } from 'plugin-api/beta/client/utils';
|
||||
|
||||
const slots = [
|
||||
'viewingOptionsSort',
|
||||
'viewingOptionsFilter',
|
||||
];
|
||||
const slots = ['viewingOptionsSort', 'viewingOptionsFilter'];
|
||||
|
||||
const mapStateToProps = ({talkPluginViewingOptions: state}) => ({
|
||||
open: state.open
|
||||
const mapStateToProps = ({ talkPluginViewingOptions: state }) => ({
|
||||
open: state.open,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators({openMenu, closeMenu}, dispatch);
|
||||
const mapDispatchToProps = dispatch =>
|
||||
bindActionCreators({ openMenu, closeMenu }, dispatch);
|
||||
|
||||
const withViewingOptionsFragments = withFragments({
|
||||
root: gql`
|
||||
@@ -32,7 +29,7 @@ const withViewingOptionsFragments = withFragments({
|
||||
|
||||
const enhance = compose(
|
||||
connect(mapStateToProps, mapDispatchToProps),
|
||||
withViewingOptionsFragments,
|
||||
withViewingOptionsFragments
|
||||
);
|
||||
|
||||
export default enhance(ViewingOptions);
|
||||
|
||||
Reference in New Issue
Block a user