@@ -3,13 +3,12 @@ var React = require('react');
3
3
var classnames = require ( 'classnames' ) ;
4
4
var List_1 = require ( 'material-ui/List' ) ;
5
5
var ProgressPage_1 = require ( './ProgressPage' ) ;
6
- var progressIcon_1 = require ( './progressIcon' ) ;
7
6
var index_1 = require ( '../index' ) ;
8
7
exports . ProgressChapter = function ( _a ) {
9
8
var chapter = _a . chapter , chapterIndex = _a . chapterIndex , position = _a . position ;
10
9
var isActive = chapterIndex === position . chapter ;
11
10
return ( React . createElement ( List_1 . ListItem , { key :'c' + chapterIndex , className :classnames ( {
12
11
'chapter' :true ,
13
12
'isActive' :isActive
14
- } ) , initiallyOpen :chapterIndex === 0 , leftIcon : progressIcon_1 . progressIcon ( chapter . completed ) , primaryTogglesNestedList :chapterIndex === position . chapter && ! chapter . completed , nestedItems :chapter . pages . map ( function ( page , pageIndex ) { return ( React . createElement ( ProgressPage_1 . ProgressPage , { key :chapterIndex + '_' + pageIndex , pageIndex :pageIndex , page :page , chapterIndex :chapterIndex , position :position } ) ) ; } ) } , React . createElement ( "h3" , null , chapterIndex + 1 , ". " , chapter . title ) , React . createElement ( "span" , { className :'chapter-description' } , React . createElement ( index_1 . Markdown , null , chapter . description ) ) ) ) ;
13
+ } ) , initiallyOpen :chapterIndex === 0 , primaryTogglesNestedList :chapterIndex === position . chapter && ! chapter . completed , nestedItems :chapter . pages . map ( function ( page , pageIndex ) { return ( React . createElement ( ProgressPage_1 . ProgressPage , { key :chapterIndex + '_' + pageIndex , pageIndex :pageIndex , page :page , chapterIndex :chapterIndex , position :position } ) ) ; } ) } , React . createElement ( "h3" , null , chapterIndex + 1 , ". " , chapter . title ) , React . createElement ( "span" , { className :'chapter-description' } , React . createElement ( index_1 . Markdown , null , chapter . description ) ) ) ) ;
15
14
} ;