File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5
5
< title > React • TodoMVC</ title >
6
6
< link rel ="stylesheet " href ="base.css ">
7
7
< link rel ="stylesheet " href ="index.css ">
8
+ < link rel ="stylesheet " href ="style.css ">
8
9
</ head >
9
10
< body >
10
11
< section class ="todoapp "> </ section >
Original file line number Diff line number Diff line change @@ -76,10 +76,18 @@ var app = app || {};
76
76
} ,
77
77
78
78
render : function ( ) {
79
+ var prefix = this . props . todo . title . split ( ':' )
80
+ var check = function ( prefix ) {
81
+ if ( prefix . length > 1 && prefix [ 0 ] === 'work' ) {
82
+ return true
83
+ } else {
84
+ return false
85
+ }
86
+ }
79
87
return (
80
-
81
88
< li className = { classNames ( {
82
- completed : this . props . todo . completed ,
89
+ workItem : check ( prefix ) ,
90
+ ompleted : this . props . todo . completed ,
83
91
editing : this . props . editing
84
92
} ) }
85
93
>
Original file line number Diff line number Diff line change
1
+ .workItem {
2
+ border-left : 3px solid blue;
3
+ }
You can’t perform that action at this time.
0 commit comments