add gist loading page

format code
This commit is contained in:
DefectingCat
2023-08-14 13:36:15 +08:00
parent d6447c6a8e
commit 32d8d48514
44 changed files with 142 additions and 107 deletions

View File

@ -13,7 +13,7 @@ const useInView = () => {
observer.unobserve(ref.current);
});
},
[]
[],
);
useEffect(() => {

View File

@ -13,7 +13,7 @@ const useRouterLoading = () => {
(url: string) => {
url !== router.pathname ? setLoading(true) : setLoading(false);
},
[router.pathname]
[router.pathname],
);
const handleComplete = useCallback(() => {
setLoading(false);