소스 검색

get rid of unused props

shinoka7 6 년 전
부모
커밋
5c90efc1eb
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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 = [];