fix: public workspace loading (#1144)

This commit is contained in:
Himself65
2023-02-20 20:32:32 -06:00
committed by GitHub
parent 8c492d2a83
commit ed4d1e8bcd
8 changed files with 58 additions and 97 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
import type { NextPage } from 'next';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
import { PageLoading } from '@/components/loading';
const Home: NextPage = () => {
return <div title="Home Page"></div>;
const router = useRouter();
useEffect(() => {
router.replace('/workspace');
}, [router]);
return <PageLoading />;
};
export default Home;