Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
page={this.props.page}
/>
{this.state.data.results && this.state.data.results.map((item) => ())
}
);
}
render() {
return (
<div>
{this.state.data && this.state.data.map((item) => (
))}
</div>
);
{this.state.view === 'rules_list' && }
{this.state.view === 'rules_list' && }
{ this.state.view === 'rules_list' && }
{this.state.view === 'rule' && }
{this.state.view === 'dashboard' && }
const perPageOptions = [10, 15, 25, 50, 100];
const { currentPage, pageSize, totalCount, totalPages } = this.props;
const rowPagination = {
page: currentPage,
perPage: pageSize,
perPageOptions
};
const itemsStart = (currentPage - 1) * pageSize + 1;
const itemsEnd = Math.min(currentPage * pageSize, totalCount);
return (
);
}