restructured and clean up

This commit is contained in:
Ren Amamiya
2023-03-05 09:27:16 +07:00
parent 8b86aca23c
commit 13dda65a39
27 changed files with 69 additions and 212 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
import BaseLayout from '@layouts/baseLayout';
import FullLayout from '@layouts/fullLayout';
import BaseLayout from '@layouts/base';
import FullscreenLayout from '@layouts/fullscreen';
import LumeSymbol from '@assets/icons/Lume';
import { useLocalStorage } from '@rehooks/local-storage';
@@ -22,7 +22,7 @@ export default function Page() {
} else {
setTimeout(() => {
setLoading(false);
router.push('/feed/following');
router.push('/newsfeed/following');
}, 1500);
}
}, [currentUser, router]);
@@ -106,7 +106,7 @@ Page.getLayout = function getLayout(
) {
return (
<BaseLayout>
<FullLayout>{page}</FullLayout>
<FullscreenLayout>{page}</FullscreenLayout>
</BaseLayout>
);
};