diff --git a/components/common/MyInfiniteScroller.tsx b/components/common/MyInfiniteScroller.tsx index d61e7ac84..8b00ecf18 100644 --- a/components/common/MyInfiniteScroller.tsx +++ b/components/common/MyInfiniteScroller.tsx @@ -1,5 +1,5 @@ import { Flex } from "@chakra-ui/react"; -import { ReactElement, ReactNodeArray, useState } from "react"; +import { useState } from "react"; import InfiniteScroll from "react-infinite-scroller"; const ON_PAGE = 6; @@ -23,11 +23,4 @@ const MyInfiniteScroller: React.FC = ({ children }) => { ); }; -function getChildrenArray(children: ReactElement): ReactNodeArray { - if (Array.isArray(children)) return children; - if (Array.isArray(children?.props.children)) return children.props.children; - - throw Error("children for MyInfiniteScroller is not an array"); -} - export default MyInfiniteScroller; diff --git a/pages/styles.css b/pages/styles.css index 3126a47a3..8904a8317 100644 --- a/pages/styles.css +++ b/pages/styles.css @@ -3,7 +3,6 @@ body { margin: 0; padding: 0; width: 100%; - height: 100%; overflow: auto; }