Skip to content

Commit

Permalink
Fix linting problems introduced in new SortableTable (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
brent-hoover authored and kieckhafer committed Jun 28, 2017
1 parent f3d29d4 commit f6438c7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,25 @@ class SortableTablePagination extends Component {
{this.props.pageText}{" "}
{showPageJump
? <div className="-pageJump">
<input
type={this.state.page === "" ? "text" : "number"}
onChange={e => {
const val = e.target.value;
<input
type={this.state.page === "" ? "text" : "number"}
onChange={e => {
const val = e.target.value;
const page = val - 1; // eslint-disable-line
if (val === "") {
return this.setState({ page: val });
}
this.setState({ page: this.getSafePage(page) });
}}
value={this.state.page === "" ? "" : this.state.page + 1}
onBlur={this.applyPage}
onKeyPress={e => {
if (e.which === 13 || e.keyCode === 13) {
this.applyPage();
}
}}
/>
</div>
if (val === "") {
return this.setState({ page: val });
}
this.setState({ page: this.getSafePage(page) });
}}
value={this.state.page === "" ? "" : this.state.page + 1}
onBlur={this.applyPage}
onKeyPress={e => {
if (e.which === 13 || e.keyCode === 13) {
this.applyPage();
}
}}
/>
</div>
: <span className="-currentPage">{page + 1}</span>}{" "}
{this.props.ofText}{" "}
<span className="-totalPages">{pages || 1}</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Icon } from "/imports/plugins/core/ui/client/components";

class EmailTableColumn extends Component {
Expand Down

0 comments on commit f6438c7

Please sign in to comment.