Fix eslint errors
parent
08ca837aca
commit
f0067083df
|
@ -28,13 +28,6 @@ const ActivableRendererFactory = (options = { delay: 500 }) =>
|
||||||
clearTimeout(this.unrenderTimeout);
|
clearTimeout(this.unrenderTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderAndActivate() {
|
|
||||||
if (this.unrenderTimeout) clearTimeout(this.unrenderTimeout);
|
|
||||||
this.setState({ rendered: true, active: false }, () => {
|
|
||||||
this.activateTimeout = setTimeout(() => this.setState({ active: true }), 20);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
deactivateAndUnrender() {
|
deactivateAndUnrender() {
|
||||||
this.setState({ rendered: true, active: false }, () => {
|
this.setState({ rendered: true, active: false }, () => {
|
||||||
this.unrenderTimeout = setTimeout(() => {
|
this.unrenderTimeout = setTimeout(() => {
|
||||||
|
@ -44,6 +37,13 @@ const ActivableRendererFactory = (options = { delay: 500 }) =>
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderAndActivate() {
|
||||||
|
if (this.unrenderTimeout) clearTimeout(this.unrenderTimeout);
|
||||||
|
this.setState({ rendered: true, active: false }, () => {
|
||||||
|
this.activateTimeout = setTimeout(() => this.setState({ active: true }), 20);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { delay, ...others } = this.props; // eslint-disable-line no-unused-vars
|
const { delay, ...others } = this.props; // eslint-disable-line no-unused-vars
|
||||||
const { active, rendered } = this.state;
|
const { active, rendered } = this.state;
|
||||||
|
|
|
@ -19,7 +19,7 @@ const factory = (Button) => {
|
||||||
PropTypes.element,
|
PropTypes.element,
|
||||||
]),
|
]),
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
onTimeout: PropTypes.func,
|
onTimeout: PropTypes.func, // eslint-disable-line
|
||||||
theme: PropTypes.shape({
|
theme: PropTypes.shape({
|
||||||
accept: PropTypes.string,
|
accept: PropTypes.string,
|
||||||
active: PropTypes.string,
|
active: PropTypes.string,
|
||||||
|
|
|
@ -4,7 +4,7 @@ import classnames from 'classnames';
|
||||||
import { themr } from 'react-css-themr';
|
import { themr } from 'react-css-themr';
|
||||||
import { TABS } from '../identifiers';
|
import { TABS } from '../identifiers';
|
||||||
|
|
||||||
class TabContent extends Component {
|
class TabContent extends Component { // eslint-disable-line react/prefer-stateless-function
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
active: PropTypes.bool,
|
active: PropTypes.bool,
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
|
|
Loading…
Reference in New Issue