You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
566 B

import React, { useState, useEffect } from "react";
import _ from "lodash";
import scroll from "../../../utils/scroll";
export default function Page5({ list, page }) {
const [top, setTop] = useState(window.innerHeight);
useEffect(() => {
window.addEventListener("scroll", (e) => {
setTop(scroll.homeScrollHandler(page));
});
}, []);
return (
<div
className={_.join(
[
"fixed left-0 h-screen w-full pt-20 bg-gray-500",
],
" "
)}
style={{ top: top }}
>
</div>
);
}