mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
app: correctly dispatch ui actions (#369)
This commit is contained in:
parent
4849dfe96b
commit
6e79beafd4
1 changed files with 4 additions and 4 deletions
|
|
@ -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());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue