From 6e79beafd4854e7401a83ee77758f25c50e58b9a Mon Sep 17 00:00:00 2001 From: Martin Ek Date: Sat, 23 Jul 2016 02:26:05 +0200 Subject: [PATCH] app: correctly dispatch ui actions (#369) --- app/lib/containers/hyperterm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/containers/hyperterm.js b/app/lib/containers/hyperterm.js index 6e14a0e5..917b2c1e 100644 --- a/app/lib/containers/hyperterm.js +++ b/app/lib/containers/hyperterm.js @@ -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()); } }; },