import React from 'react'; import {connect} from 'react-redux'; class ClutterBar extends React.Component { constructor(props) { super(props); this.handleMouseDownDouble = this.handleMouseDownDouble.bind(this); this.handleMouseUpDouble = this.handleMouseUpDouble.bind(this); } handleMouseDownDouble() { this.props.dispatch({type: 'SET_FOCUS', input: 'double'}); } handleMouseUpDouble() { this.props.dispatch({type: 'TOGGLE_DOUBLESIZE_MODE'}); this.props.dispatch({type: 'UNSET_FOCUS'}); } render() { return
; } } module.exports = connect(state => state.display)(ClutterBar);