@@ -24,21 +24,19 @@ var HintButton = (function (_super) {
2424 _super . apply ( this , arguments ) ;
2525 }
2626 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 ;
2828 switch ( type ) {
2929 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 ) } ) ) ;
3131 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 ) } ) ) ;
3333 }
3434 } ;
3535 HintButton = __decorate ( [
3636 react_redux_1 . connect ( function ( state ) { return ( {
3737 hintPosition : state . hintPosition ,
3838 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 } ) ,
4240 __metadata ( 'design:paramtypes' , [ ] )
4341 ] , HintButton ) ;
4442 return HintButton ;
0 commit comments