Skip to content

Commit 64ca054

Browse files
committed
fix no-console
1 parent 1633898 commit 64ca054

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/pagination/PaginationList.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -156,22 +156,19 @@ class PaginationList extends Component {
156156
}
157157

158158
getPages() {
159-
console.log('start with totalPages ' + this.totalPages);
160-
console.log('last page should be ' + this.lastPage);
161159
let pages;
162160
let endPage = this.totalPages;
163161
let startPage = Math.max(
164162
this.props.currPage - Math.floor(this.props.paginationSize / 2),
165163
this.props.pageStartIndex
166164
);
167165
endPage = startPage + this.props.paginationSize - 1;
168-
console.log('end ' + endPage);
166+
169167
if (endPage > this.lastPage) {
170168
endPage = this.lastPage;
171169
startPage = endPage - this.props.paginationSize + 1;
172170
}
173171

174-
console.log('end ' + endPage);
175172
if (startPage !== this.props.pageStartIndex && this.totalPages > this.props.paginationSize) {
176173
pages = [ this.props.firstPage, this.props.prePage ];
177174
} else if (this.totalPages > 1) {
@@ -191,13 +188,6 @@ class PaginationList extends Component {
191188
pages.push(this.props.nextPage);
192189
}
193190

194-
// if (endPage !== lastPage) {
195-
// pages.push(this.props.nextPage);
196-
// pages.push(this.props.lastPage);
197-
// } else if (this.totalPages > 1) {
198-
// pages.push(this.props.nextPage);
199-
// }
200-
console.log(pages);
201191
return pages;
202192
}
203193
}

0 commit comments

Comments
 (0)