@@ -24,21 +24,19 @@ var HintButton = (function (_super) {
24
24
_super . apply ( this , arguments ) ;
25
25
}
26
26
HintButton . prototype . render = function ( ) {
27
- var _a = this . props , hintPosition = _a . hintPosition , hintsLength = _a . hintsLength , label = _a . label , type = _a . type , hintSet = _a . hintSet ;
27
+ var _a = this . props , hintPosition = _a . hintPosition , hintsLength = _a . hintsLength , label = _a . label , type = _a . type , hintPositionSet = _a . hintPositionSet ;
28
28
switch ( type ) {
29
29
case 'next' :
30
- return ( React . createElement ( FlatButton_1 . default , { label : label , disabled : hintPosition > hintsLength - 2 , onTouchTap : hintSet . bind ( this , hintPosition + 1 ) } ) ) ;
30
+ return ( React . createElement ( FlatButton_1 . default , { label : label , disabled : hintPosition > hintsLength - 2 , onTouchTap : hintPositionSet . bind ( this , hintPosition + 1 ) } ) ) ;
31
31
case 'prev' :
32
- return ( React . createElement ( FlatButton_1 . default , { label : label , disabled : hintPosition === 0 , onTouchTap : hintSet . bind ( this , hintPosition - 1 ) } ) ) ;
32
+ return ( React . createElement ( FlatButton_1 . default , { label : label , disabled : hintPosition === 0 , onTouchTap : hintPositionSet . bind ( this , hintPosition - 1 ) } ) ) ;
33
33
}
34
34
} ;
35
35
HintButton = __decorate ( [
36
36
react_redux_1 . connect ( function ( state ) { return ( {
37
37
hintPosition : state . hintPosition ,
38
38
hintsLength : selectors_1 . hintsSelector ( state ) . length ,
39
- } ) ; } , function ( dispatch ) { return ( {
40
- hintSet : function ( position ) { dispatch ( actions_1 . hintPositionSet ( position ) ) ; } ,
41
- } ) ; } ) ,
39
+ } ) ; } , { hintPositionSet : actions_1 . hintPositionSet } ) ,
42
40
__metadata ( 'design:paramtypes' , [ ] )
43
41
] , HintButton ) ;
44
42
return HintButton ;
0 commit comments