@@ -17,7 +17,7 @@ var React = require('react');
17
17
var react_redux_1 = require ( 'react-redux' ) ;
18
18
var Action = require ( '../../actions/actions' ) ;
19
19
var material_ui_1 = require ( 'material-ui' ) ;
20
- var classNames = require ( 'classnames' ) ;
20
+ var classnames = require ( 'classnames' ) ;
21
21
var Completed = require ( 'material-ui/lib/svg-icons/toggle/check-box' ) ;
22
22
var Current = require ( 'material-ui/lib/svg-icons/av/play-circle-filled' ) ;
23
23
var AllCompleted = require ( 'material-ui/lib/svg-icons/action/done-all' ) ;
@@ -62,7 +62,7 @@ var ProgressPage = (function (_super) {
62
62
var itemPosition = this . props . itemPosition ;
63
63
var position = this . props . position ;
64
64
var isActive = itemPosition . chapter === position . chapter && itemPosition . page === position . page ;
65
- return ( React . createElement ( material_ui_1 . ListItem , { key :itemPosition . page , className :classNames ( {
65
+ return ( React . createElement ( material_ui_1 . ListItem , { key :itemPosition . page , className :classnames ( {
66
66
'cr-page' :true ,
67
67
'cr-page-isDisabled' :! this . canActivate ( isActive , itemPosition , position )
68
68
} ) , primaryText :( itemPosition . page + 1 ) + ". " + page . title , secondaryText :page . description , secondaryTextLines :page . description . length > 50 ?2 :1 , leftIcon :this . getProgressIcon ( page . completed , isActive ) , rightIcon :this . getButton ( isActive , itemPosition ) , onClick :this . canActivate ( isActive , itemPosition , position ) ?this . props . selectPage . bind ( this , itemPosition ) :null } ) ) ;
@@ -93,7 +93,7 @@ exports.default = function (_a) {
93
93
return ( React . createElement ( material_ui_1 . Paper , { style :style , zDepth :1 , className :'cr-progress' } ,
94
94
React . createElement ( material_ui_1 . List , { subheader :'Progress' } , progress . chapters . map ( function ( chapter , chapterIndex ) {
95
95
var isActive = chapterIndex === position . chapter ;
96
- return React . createElement ( material_ui_1 . ListItem , { primaryText :( chapterIndex + 1 ) + ". " + chapter . title , className :classNames ( {
96
+ return React . createElement ( material_ui_1 . ListItem , { primaryText :( chapterIndex + 1 ) + ". " + chapter . title , className :classnames ( {
97
97
'chapter' :true ,
98
98
'isActive' :isActive
99
99
} ) , secondaryText :chapter . description , secondaryTextLines :chapter . description . length > 35 ?2 :1 , initiallyOpen :chapterIndex === 0 , leftIcon :chapter . completed ?React . createElement ( AllCompleted , null ) :null , primaryTogglesNestedList :chapterIndex === position . chapter && ! chapter . completed , nestedItems :chapter . pages . map ( function ( page , pageIndex ) {