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