260914_01_ENH: 1차 완성
This commit is contained in:
@@ -1,13 +1,27 @@
|
||||
import { AppPageTitle } from "@/components/app-shell/AppPageTitle";
|
||||
'use client'
|
||||
|
||||
import {useMounted} from "@kri/common/hooks";
|
||||
import {useAuth} from "@/hooks/useAuth";
|
||||
import {useEffect} from "react";
|
||||
import {useRouter} from "next/navigation";
|
||||
import {Route} from "next";
|
||||
|
||||
function LoadingOverlay(props: { force: boolean }) {
|
||||
return null;
|
||||
}
|
||||
|
||||
export default function MainPage() {
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<AppPageTitle title="K-Musical 모니터링 시스템" description="프로젝트 기본 구성이 완료되었습니다." />
|
||||
<div className="rounded-lg border bg-card p-6 text-card-foreground shadow-sm">
|
||||
<p className="font-medium">다음 작업</p>
|
||||
<p className="mt-2 text-sm text-muted-foreground">메뉴와 API 경로를 프로젝트 업무에 맞게 확장하세요.</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
const router = useRouter();
|
||||
const mounted = useMounted();
|
||||
const { auth } = useAuth();
|
||||
|
||||
useEffect(() => {
|
||||
if(auth && auth.user){
|
||||
router.push("/performance" as Route);
|
||||
}
|
||||
}, [auth.user])
|
||||
|
||||
if (!mounted) return <LoadingOverlay force />;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user