app: correctly dispatch ui actions (#369)

This commit is contained in:
Martin Ek 2016-07-23 02:26:05 +02:00 committed by Guillermo Rauch
parent 4849dfe96b
commit 6e79beafd4

View file

@ -4,7 +4,7 @@ import TermsContainer from './terms';
import NotificationsContainer from './notifications'; import NotificationsContainer from './notifications';
import Component from '../component'; import Component from '../component';
import Mousetrap from 'mousetrap'; import Mousetrap from 'mousetrap';
import { moveTo, moveLeft, moveRight } from '../actions/ui'; import * as uiActions from '../actions/ui';
import { connect } from '../utils/plugins'; import { connect } from '../utils/plugins';
const isMac = /Mac/.test(navigator.userAgent); const isMac = /Mac/.test(navigator.userAgent);
@ -132,15 +132,15 @@ const HyperTermContainer = connect(
(dispatch) => { (dispatch) => {
return { return {
moveTo: (i) => { moveTo: (i) => {
dispatch(moveTo(i)); dispatch(uiActions.moveTo(i));
}, },
moveLeft: () => { moveLeft: () => {
dispatch(moveLeft()); dispatch(uiActions.moveLeft());
}, },
moveRight: () => { moveRight: () => {
dispatch(moveRight()); dispatch(uiActions.moveRight());
} }
}; };
}, },