@@ -25,11 +25,11 @@ var Progress = (function (_super) {
2525 _super . apply ( this , arguments ) ;
2626 }
2727 Progress . prototype . render = function ( ) {
28- var _a = this . props , progress = _a . progress , pagePosition = _a . pagePosition , info = _a . info , tutorial = _a . tutorial , selectPage = _a . selectPage ;
28+ var _a = this . props , info = _a . info , tutorial = _a . tutorial ;
2929 return ( React . createElement ( Paper_1 . default , { style : styles . page } ,
3030 React . createElement ( List_1 . List , { style : styles . list } ,
3131 React . createElement ( Subheader_1 . default , null , info . title ) ,
32- tutorial . pages . map ( function ( page , index ) { return ( React . createElement ( ProgressPage_1 . default , { key : index , index : index , page : page , pagePosition : pagePosition , progress : progress , selectPage : selectPage } ) ) ; } ) )
32+ tutorial . pages . map ( function ( page , index ) { return ( React . createElement ( ProgressPage_1 . default , { key : index , index : index , page : page } ) ) ; } ) )
3333 ) ) ;
3434 } ;
3535 Progress . prototype . componentWillMount = function ( ) {
@@ -38,17 +38,11 @@ var Progress = (function (_super) {
3838 return Progress ;
3939} ( React . Component ) ) ;
4040var mapStateToProps = function ( state ) { return ( {
41- progress : state . progress ,
42- pagePosition : state . pagePosition ,
4341 info : state . tutorial . info ,
4442 tutorial : state . tutorial ,
4543} ) ; } ;
46- var mapDispatchToProps = function ( dispatch ) { return ( {
47- selectPage : function ( pagePosition ) {
48- dispatch ( actions_1 . pageSet ( pagePosition ) ) ;
49- dispatch ( actions_1 . routeSet ( 'page' ) ) ;
50- } ,
44+ var mapDispatchToProps = {
5145 progressLoad : actions_1 . progressLoad
52- } ) ; } ;
46+ } ;
5347Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
5448exports . default = react_redux_1 . connect ( mapStateToProps , mapDispatchToProps ) ( Progress ) ;
0 commit comments