src/components/List.js
// On the first and last page dont show the navigations
On the first and last page dont show the navigations
On the first and last page dont show the navigations
toggleNavButtons() {
    const navLeft = this.elements.wrapper.firstChild.firstChild;
    const navRight = this.elements.wrapper.firstChild.lastChild;
    navLeft.disabled = false;
    navRight.disabled = false;
    if (this.state.currentPage == 1) {
      navLeft.disabled = true;
    }
    if (this.state.currentPage == this.getPageCount()) {
      navRight.disabled = true;
    }
  }
toggleNavButtons ( ) { const navLeft = this . elements . wrapper . firstChild . firstChild ; const navRight = this . elements . wrapper . firstChild . lastChild ; navLeft . disabled = false ; navRight . disabled = false ; if ( this . state . currentPage == 1 ) { navLeft . disabled = true ; } if ( this . state . currentPage == this . getPageCount ( ) ) { navRight . disabled = true ; } }
On the first and last page dont show the navigations
On the first and last page dont show the navigations