Skip to content

Commit 178b7c5

Browse files
committed
remove irrelevant code
1 parent e6be516 commit 178b7c5

File tree

4 files changed

+4
-26
lines changed

4 files changed

+4
-26
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"error",
3636
"always"
3737
],
38+
"no-console": 0,
3839
"react/jsx-uses-react": "warn",
3940
"react/react-in-jsx-scope": "off",
4041
"react/prefer-stateless-function": "warn",

src/components/ChapterSidebar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default class ChapterSidebar extends Component {
6666
onClick={this.onChapterItemClick(chapterItem)}
6767
style={style}
6868
innerDivStyle={{paddingLeft: 37}}
69+
key={`chapter_item_${chapterItem.cid}`}
6970
>
7071
{chapterItem.title}
7172
</MenuItem>

src/components/ComicListView.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,9 @@ export default class ComicListView extends Component {
3030
}
3131
}
3232

33-
rowRenderer = ({index}) => {
34-
const { comicImages } = this.props;
35-
var image = comicImages[index];
36-
return <ComicImage key={image} src={image} />;
37-
}
38-
3933
render() {
4034
const { comicImages } = this.props;
4135

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-
5736
if (comicImages.length == 0) {
5837
return(<LoadIndicator />);
5938
} else {

src/containers/Reader.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import React, {
2-
Component,
3-
PropTypes
4-
} from 'react';
1+
import React, { Component, PropTypes } from 'react';
52

63
import { connect } from 'react-redux';
74
import { bindActionCreators } from 'redux';
@@ -22,7 +19,7 @@ import * as ChapterActions from 'actions/ChapterActions';
2219
import {toggleAppDrawer} from 'actions/UIActions';
2320
import { getNextChapterIndex, getPreviousChapterIndex } from 'reducers/selectors';
2421

25-
import '../styles/SwitchArea.scss';
22+
import 'styles/SwitchArea.scss';
2623

2724
@Radium
2825
class Reader extends Component {

0 commit comments

Comments
 (0)