@@ -25,11 +25,11 @@ var Progress = (function (_super) {
25
25
_super . apply ( this , arguments ) ;
26
26
}
27
27
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 ;
29
29
return ( React . createElement ( Paper_1 . default , { style :styles . page } ,
30
30
React . createElement ( List_1 . List , { style :styles . list } ,
31
31
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 } ) ) ; } ) )
33
33
) ) ;
34
34
} ;
35
35
Progress . prototype . componentWillMount = function ( ) {
@@ -38,17 +38,11 @@ var Progress = (function (_super) {
38
38
return Progress ;
39
39
} ( React . Component ) ) ;
40
40
var mapStateToProps = function ( state ) { return ( {
41
- progress :state . progress ,
42
- pagePosition :state . pagePosition ,
43
41
info :state . tutorial . info ,
44
42
tutorial :state . tutorial ,
45
43
} ) ; } ;
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 = {
51
45
progressLoad :actions_1 . progressLoad
52
- } ) ; } ;
46
+ } ;
53
47
Object . defineProperty ( exports , "__esModule" , { value :true } ) ;
54
48
exports . default = react_redux_1 . connect ( mapStateToProps , mapDispatchToProps ) ( Progress ) ;