Skip to content

Commit

Permalink
Issue #1410 Changed function name to LoadAutoScroll (#1453)
Browse files Browse the repository at this point in the history
* Changed function name to LoadAutoScroll

* Changed onScroll to onClick

* Changed onClick back to onScroll
  • Loading branch information
strawberries73 committed Nov 24, 2020
1 parent 987327d commit a1b234c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/src/components/Posts/LoadAutoScroll.jsx
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles((theme) => ({
},
}));

function LoadMoreButton({ onScroll }) {
function LoadAutoScroll({ onScroll }) {
const classes = useStyles();
const $buttonRef = useRef(null);

Expand Down Expand Up @@ -51,8 +51,9 @@ function LoadMoreButton({ onScroll }) {
);
}

LoadMoreButton.propTypes = {
LoadAutoScroll.propTypes = {
onClick: PropTypes.func,
onScroll: PropTypes.func,
};

export default LoadMoreButton;
export default LoadAutoScroll;

0 comments on commit a1b234c

Please sign in to comment.