Sfoglia il codice sorgente

get rid of unused props

shinoka7 6 anni fa
parent
commit
5c90efc1eb
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      src/client/js/components/PaginationWrapper.jsx

+ 1 - 6
src/client/js/components/PaginationWrapper.jsx

@@ -133,12 +133,7 @@ class PaginationWrapper extends React.Component {
 
   render() {
     const { children } = this.props;
-    const childElement = React.cloneElement(
-      children, {
-        currentItems: this.state.currentItems,
-        currentPage: this.state.activePage,
-      },
-    );
+    const childElement = React.cloneElement(children);
 
     const paginationItems = [];