File tree Expand file tree Collapse file tree 4 files changed +4
-26
lines changed Expand file tree Collapse file tree 4 files changed +4
-26
lines changed Original file line number Diff line number Diff line change 35
35
"error",
36
36
"always"
37
37
],
38
+ "no-console": 0,
38
39
"react/jsx-uses-react": "warn",
39
40
"react/react-in-jsx-scope": "off",
40
41
"react/prefer-stateless-function": "warn",
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export default class ChapterSidebar extends Component {
66
66
onClick = { this . onChapterItemClick ( chapterItem ) }
67
67
style = { style }
68
68
innerDivStyle = { { paddingLeft : 37 } }
69
+ key = { `chapter_item_${ chapterItem . cid } ` }
69
70
>
70
71
{ chapterItem . title }
71
72
</ MenuItem >
Original file line number Diff line number Diff line change @@ -30,30 +30,9 @@ export default class ComicListView extends Component {
30
30
}
31
31
}
32
32
33
- rowRenderer = ( { index} ) => {
34
- const { comicImages } = this . props ;
35
- var image = comicImages [ index ] ;
36
- return < ComicImage key = { image } src = { image } /> ;
37
- }
38
-
39
33
render ( ) {
40
34
const { comicImages } = this . props ;
41
35
42
- /*
43
- <AutoSizer>
44
- {({ height, width }) => (
45
- <VirtualScroll
46
- // ref={registerChild}
47
- rowCount={comicImages.length}
48
- width={width}
49
- height={height}
50
- rowHeight={500}
51
- rowRenderer={this.rowRenderer}
52
- />
53
- )}
54
- </AutoSizer>
55
- */
56
-
57
36
if ( comicImages . length == 0 ) {
58
37
return ( < LoadIndicator /> ) ;
59
38
} else {
Original file line number Diff line number Diff line change 1
- import React , {
2
- Component ,
3
- PropTypes
4
- } from 'react' ;
1
+ import React , { Component , PropTypes } from 'react' ;
5
2
6
3
import { connect } from 'react-redux' ;
7
4
import { bindActionCreators } from 'redux' ;
@@ -22,7 +19,7 @@ import * as ChapterActions from 'actions/ChapterActions';
22
19
import { toggleAppDrawer } from 'actions/UIActions' ;
23
20
import { getNextChapterIndex , getPreviousChapterIndex } from 'reducers/selectors' ;
24
21
25
- import '../ styles/SwitchArea.scss' ;
22
+ import 'styles/SwitchArea.scss' ;
26
23
27
24
@Radium
28
25
class Reader extends Component {
You can’t perform that action at this time.
0 commit comments