Explorar el Código

get rid of unused props

shinoka7 hace 6 años
padre
commit
5c90efc1eb
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  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 = [];