diff --git a/frontend/src/js/component/wb-app.js b/frontend/src/js/component/wb-app.js
index 25f4857..c86691b 100644
--- a/frontend/src/js/component/wb-app.js
+++ b/frontend/src/js/component/wb-app.js
@@ -5,15 +5,16 @@ import WBPagination from 'wb-pagination';
import WBProjectListing from 'wb-project-listing';
class WBApp extends Component {
- render() {
+ render({}, { activePage }) {
return (
WBApp
+ arvToken="v2/arkau-gj3su-uf4hnu2o2qkvm8j/15kla38mafzq6b31d5t74ynhk6iuy32v1ticslodr0obvvhde9"
+ itemsPerPage="5" />
-
alert(idx) } />
+ this.setState({ 'activePage': i }) } />
Number(n));
- visible.sort();
+ visible.sort((a, b) => (a - b));
let res = [];
let prev = 0;
@@ -24,7 +24,7 @@ class WBPagination extends Component {
res.push((
onPageChanged(activePage - 1) }>Previous
+ onclick={ e => { e.preventDefault(); onPageChanged(activePage - 1); } }>Previous
));
@@ -34,7 +34,7 @@ class WBPagination extends Component {
res.push((
onPageChanged(i - 1) }>...
+ onclick={ e => { e.preventDefault(); onPageChanged(i - 1); } }>...
));
prev = i;
@@ -42,7 +42,7 @@ class WBPagination extends Component {
res.push((
onPageChanged(i) }>{ i + 1 }
+ onclick={ e => { e.preventDefault(); onPageChanged(i); } }>{ i + 1 }
));
}
@@ -50,7 +50,7 @@ class WBPagination extends Component {
res.push((
= numPages - 1 ? "page-item disabled" : "page-item" }>
onPageChanged(activePage + 1) }>Next
+ onclick={ e => { e.preventDefault(); onPageChanged(activePage + 1); } }>Next
));