@@ -21,7 +21,6 @@ var Task_1 = require('../Task');
2121var Tests_1 = require ( '../Tests' ) ;
2222var TaskActions_1 = require ( '../TaskActions' ) ;
2323var Hints_1 = require ( '../Hints' ) ;
24- var AddButton_1 = require ( '../AddButton' ) ;
2524var actions_1 = require ( '../../../actions' ) ;
2625var core_coderoad_1 = require ( 'core-coderoad' ) ;
2726var styles = {
@@ -55,28 +54,26 @@ var Tasks = (function (_super) {
5554 Tasks . prototype . render = function ( ) {
5655 var _this = this ;
5756 var _a = this . props , tasks = _a . tasks , tutorialTaskAdd = _a . tutorialTaskAdd , editorMarkdownOpen = _a . editorMarkdownOpen ;
58- return ( React . createElement ( "div" , null ,
59- tasks . map ( function ( task , index ) { return ( React . createElement ( Card_1 . Card , { key : index , style : styles . card , initiallyExpanded : index === 0 } ,
60- React . createElement ( Card_1 . CardHeader , { actAsExpander : true , showExpandableButton : true } ,
61- React . createElement ( "span" , { style : styles . title } ,
62- "Task " ,
63- index + 1 ) ,
64- React . createElement ( Tests_1 . default , { style : styles . test , tests : task . tests } ) ) ,
65- React . createElement ( Card_1 . CardText , { expandable : true , style : styles . cardContent } ,
66- React . createElement ( Tabs_1 . Tabs , { tabItemContainerStyle : styles . tabBar } ,
67- React . createElement ( Tabs_1 . Tab , { label : 'Description' } ,
68- React . createElement ( "div" , { onClick : editorMarkdownOpen . bind ( _this , task . description , null ) } ,
69- React . createElement ( Task_1 . default , { key : index , index : index , task : task } )
70- )
71- ) ,
72- React . createElement ( Tabs_1 . Tab , { label : 'Actions' } ,
73- React . createElement ( TaskActions_1 . default , { actions : task . actions , taskPosition : index } )
74- ) ,
75- React . createElement ( Tabs_1 . Tab , { label : 'Hints' } ,
76- React . createElement ( Hints_1 . default , { hints : task . hints , taskPosition : index } )
77- ) )
78- ) ) ) ; } ) ,
79- React . createElement ( AddButton_1 . default , { callback : tutorialTaskAdd } ) ) ) ;
57+ return ( React . createElement ( "div" , null , tasks . map ( function ( task , index ) { return ( React . createElement ( Card_1 . Card , { key : index , style : styles . card , initiallyExpanded : index === 0 } ,
58+ React . createElement ( Card_1 . CardHeader , { actAsExpander : true , showExpandableButton : true } ,
59+ React . createElement ( "span" , { style : styles . title } ,
60+ "Task " ,
61+ index + 1 ) ,
62+ React . createElement ( Tests_1 . default , { style : styles . test , tests : task . tests } ) ) ,
63+ React . createElement ( Card_1 . CardText , { expandable : true , style : styles . cardContent } ,
64+ React . createElement ( Tabs_1 . Tabs , { tabItemContainerStyle : styles . tabBar } ,
65+ React . createElement ( Tabs_1 . Tab , { label : 'Description' } ,
66+ React . createElement ( "div" , { onClick : editorMarkdownOpen . bind ( _this , task . description , null ) } ,
67+ React . createElement ( Task_1 . default , { key : index , index : index , task : task } )
68+ )
69+ ) ,
70+ React . createElement ( Tabs_1 . Tab , { label : 'Actions' } ,
71+ React . createElement ( TaskActions_1 . default , { actions : task . actions , taskPosition : index } )
72+ ) ,
73+ React . createElement ( Tabs_1 . Tab , { label : 'Hints' } ,
74+ React . createElement ( Hints_1 . default , { hints : task . hints , taskPosition : index } )
75+ ) )
76+ ) ) ) ; } ) ) ) ;
8077 } ;
8178 Tasks = __decorate ( [
8279 react_redux_1 . connect ( function ( state ) { return ( {
0 commit comments