instructor page
This commit is contained in:
@@ -13,7 +13,7 @@ const NAV_ITEMS = [
|
||||
];
|
||||
|
||||
const INSTRUCTOR_NAV_ITEMS = [
|
||||
{ label: "강좌 현황", href: "/admin/courses" },
|
||||
{ label: "강좌 현황", href: "/instructor/courses" },
|
||||
{ label: "학습 자료실", href: "/admin/resources" },
|
||||
{ label: "공지사항", href: "/admin/notices" },
|
||||
];
|
||||
@@ -28,7 +28,7 @@ export default function NavBar() {
|
||||
const userButtonRef = useRef<HTMLButtonElement | null>(null);
|
||||
const hideCenterNav = /^\/[^/]+\/review$/.test(pathname);
|
||||
const isAdminPage = pathname.startsWith('/admin');
|
||||
const isInstructorPage = pathname === '/instructor';
|
||||
const isInstructorPage = pathname.startsWith('/instructor');
|
||||
|
||||
// 사용자 정보 가져오기 및 비활성화 계정 체크
|
||||
useEffect(() => {
|
||||
@@ -162,6 +162,12 @@ export default function NavBar() {
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
<Link
|
||||
href="/admin"
|
||||
className={["px-4 py-2 text-[16px] font-semibold text-white"].join(" ")}
|
||||
>
|
||||
관리자페이지
|
||||
</Link>
|
||||
</nav>
|
||||
)}
|
||||
{!hideCenterNav && !isAdminPage && !isInstructorPage && (
|
||||
|
||||
Reference in New Issue
Block a user