Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const {
List,
FilterForm,
listStore,
debug,
filterProps,
isFilterModal,
// container,
} = this.props;
if (!FilterForm) return null; // ;
const { showFilter } = listStore;
return (
<div>
</div>
isFilterModal,
// container,
} = this.props;
if (!FilterForm) return null; // ;
const { showFilter } = listStore;
return (
<div>
</div>
componentDidMount() {
// TODO: Hack. Убрать когда-нибудь
/* eslint-disable */
if (isTouchDevice()) {
setInterval(() => {
this.setState({ counter: this.state.counter + 1 });
}, 500);
}
/* eslint-enable */
}
iconLeft: null,
iconRight: null,
children: null,
state: null,
contentSuccess: null,
contentProcessing: null,
contentError: null,
textSuccess: null,
textProcessing: null,
textError: null,
autoMobile: false,
rounded: false,
colors: null,
mobileView: false,
onlyIcon: false,
isRipple: !isTouchDevice(),
}
constructor(props) {
super(props);
this.state = {
isRippleActive: false,
};
this.ripple = React.createRef();
}
componentDidMount() {
const { disabled, isRipple } = this.props;
if (typeof window !== 'undefined') {
if (!disabled && isRipple) {
const condition = this.isBrowser('safari') || this.isBrowser('firefox');
this.ripple.current.addEventListener(condition ? 'click' : 'mousedown', this.clickListener);