File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import FlatButton from 'material-ui/FlatButton';
7
7
selectTutorial : ( name : string ) => dispatch ( tutorialSet ( name ) ) ,
8
8
} ) )
9
9
export default class SelectTutorial extends React . Component < {
10
- tutorial : Tutorial . Info , selectTutorial ?: any
10
+ tutorial : Tutorial . Item , selectTutorial ?: any
11
11
} , { } > {
12
12
displayName ( name : string ) : string {
13
13
if ( name . match ( / ^ c o d e r o a d - t u t o r i a l - / ) ) {
@@ -19,7 +19,7 @@ export default class SelectTutorial extends React.Component<{
19
19
}
20
20
render ( ) {
21
21
const { tutorial, selectTutorial} = this . props ;
22
- const { name} = tutorial ;
22
+ const name = tutorial . name ;
23
23
return (
24
24
< FlatButton
25
25
label = { this . displayName ( name ) }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const styles = {
13
13
tutorialUpdate : ( title : string ) => dispatch ( tutorialUpdate ( title ) ) ,
14
14
} ) )
15
15
export default class UpdateTutorial extends React . Component < {
16
- tutorial : Tutorial . Info , tutorialUpdate ?: any
16
+ tutorial : Tutorial . Item , tutorialUpdate ?: any
17
17
} , { } > {
18
18
render ( ) {
19
19
const { tutorial, tutorialUpdate} = this . props ;
@@ -22,8 +22,8 @@ export default class UpdateTutorial extends React.Component<{
22
22
< Update
23
23
style = { styles }
24
24
color = { pink500 }
25
- onTouchTap = { tutorialUpdate . bind ( this , tutorial . title ) }
26
- />
25
+ onTouchTap = { tutorialUpdate . bind ( this , tutorial . name ) }
26
+ /> ``
27
27
< span style = { { marginLeft : '10px' } } > { tutorial . latest } </ span >
28
28
</ span >
29
29
) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const styles = {
19
19
loadTutorials : ( ) => dispatch ( tutorialsFind ( ) ) ,
20
20
} ) )
21
21
export default class Tutorials extends React . Component < {
22
- tutorials ?: Tutorial . Info [ ] , loadTutorials ?: any
22
+ tutorials ?: Tutorial . Item [ ] , loadTutorials ?: any
23
23
} , { } > {
24
24
constructor ( props ) {
25
25
super ( props ) ;
@@ -45,7 +45,7 @@ export default class Tutorials extends React.Component<{
45
45
46
46
< TableBody displayRowCheckbox = { false } >
47
47
{ tutorials . map ( function tutorialRow (
48
- tutorial : Tutorial . Info , index : number
48
+ tutorial : Tutorial . Item , index : number
49
49
) {
50
50
return (
51
51
< TableRow key = { index } >
You can’t perform that action at this time.
0 commit comments