File tree Expand file tree Collapse file tree 3 files changed +35
-29
lines changed Expand file tree Collapse file tree 3 files changed +35
-29
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ import {ListItem} from 'material-ui/List';
55import { lightGreen200 , orange200 } from 'material-ui/styles/colors' ;
66
77const styles = {
8- margin : '5px' ,
9- padding : '5px' ,
10- position : 'relative'
11- } ;
12-
13- const indexStyles = {
14- position : 'absolute' ,
15- top : '20px' ,
16- left : '45px' ,
17- } ;
18-
19- const descriptionStyles = {
20- backgroundColor : 'inherit ' ,
21- paddingTop : '-10px ' ,
22- paddingLeft : '55px ' ,
23- fontSize : '14px ' ,
24- lineHeight : '1.6' ,
8+ task : {
9+ margin : '5px' ,
10+ padding : '5px' ,
11+ position : 'relative'
12+ } ,
13+ index : {
14+ position : 'absolute' ,
15+ top : '20px' ,
16+ left : '45px' ,
17+ } ,
18+ description : {
19+ backgroundColor : 'inherit' ,
20+ paddingTop : '-10px ' ,
21+ paddingLeft : '55px ' ,
22+ fontSize : '14px ' ,
23+ lineHeight : '1.6 ' ,
24+ } ,
2525} ;
2626
2727function getStatus (
@@ -38,11 +38,11 @@ const Task: React.StatelessComponent<{
3838 return (
3939 < ListItem
4040 key = { index }
41- style = { Object . assign ( { } , styles , { backgroundColor} ) }
41+ style = { Object . assign ( { } , styles . task , { backgroundColor} ) }
4242 >
4343 { taskCheckbox ( isCurrentTask , testRun ) }
44- < span style = { indexStyles } > { index + 1 } .</ span >
45- < div style = { descriptionStyles } >
44+ < span style = { styles . index } > { index + 1 } .</ span >
45+ < div style = { styles . description } >
4646 < Markdown > { task . description } </ Markdown >
4747 </ div >
4848 </ ListItem >
Original file line number Diff line number Diff line change @@ -4,23 +4,24 @@ import {Markdown} from '../../index';
44import { cyan500 , grey100 } from 'material-ui/styles/colors' ;
55
66const styles = {
7- backgroundColor : cyan500 ,
8- margin : '10px 5px' ,
9- } ;
10-
11- const textStyles = {
12- color : grey100 ,
13- fontSize : '1.1em'
7+ card : {
8+ backgroundColor : cyan500 ,
9+ margin : '10px 5px' ,
10+ } ,
11+ text : {
12+ color : grey100 ,
13+ fontSize : '1.1em'
14+ } ,
1415} ;
1516
1617const TasksComplete : React . StatelessComponent < {
1718 page : CR . Page , completed : boolean
1819} > = ( { page, completed} ) => {
1920 if ( ! completed || ! page . onPageComplete ) { return null ; }
2021 return (
21- < Card style = { styles } >
22+ < Card style = { styles . card } >
2223 < CardText >
23- < Markdown style = { textStyles } > { page . onPageComplete } </ Markdown >
24+ < Markdown style = { styles . text } > { page . onPageComplete } </ Markdown >
2425 </ CardText >
2526 </ Card >
2627 ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ export default class Routes extends React.Component<{
1717 return < TutorialConfig { ...this . props } /> ;
1818 case 'tutorialInfo' :
1919 return < TutorialInfo { ...this . props } /> ;
20+
21+ // TODO
22+ // case 'tutorialPublish':
23+ // return <TutorialPublish {...props} />;
24+
2025 default :
2126 throw 'Error: Route not found.' ;
2227 }
You can’t perform that action at this time.
0 commit comments