diff --git a/refer_landing_page/app/console/_components/AdminComponents.tsx b/refer_landing_page/app/console/_components/AdminComponents.tsx index 8dd46df..5473f1a 100644 --- a/refer_landing_page/app/console/_components/AdminComponents.tsx +++ b/refer_landing_page/app/console/_components/AdminComponents.tsx @@ -3,6 +3,7 @@ import React, { useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; +import ThemeToggle from "@/components/ThemeToggle"; export function getClientToken(): string { if (typeof window === "undefined") return ""; @@ -25,12 +26,15 @@ export function removeClientToken() { export function AdminHeader({ title, description, action }: { title: string; description?: string; action?: React.ReactNode }) { return ( -
+

{title}

{description &&

{description}

}
- {action &&
{action}
} +
+ {action} + +
); } diff --git a/refer_landing_page/app/console/_components/AdminLoginForm.tsx b/refer_landing_page/app/console/_components/AdminLoginForm.tsx index f489300..6988b8f 100644 --- a/refer_landing_page/app/console/_components/AdminLoginForm.tsx +++ b/refer_landing_page/app/console/_components/AdminLoginForm.tsx @@ -4,6 +4,7 @@ import React, { useState } from "react"; import { useRouter } from "next/navigation"; import { setClientToken } from "./AdminComponents"; import { adminVerifyToken } from "../../../lib/adminApi"; +import ThemeToggle from "@/components/ThemeToggle"; export function AdminLoginForm({ onLoginSuccess }: { onLoginSuccess?: () => void }) { const router = useRouter(); @@ -41,7 +42,10 @@ export function AdminLoginForm({ onLoginSuccess }: { onLoginSuccess?: () => void }; return ( -
+
+
+ +

ANL Admin Console

Enter your admin bearer token to manage laboratory datasets.

diff --git a/refer_landing_page/app/console/layout.tsx b/refer_landing_page/app/console/layout.tsx index 525d196..04730dd 100644 --- a/refer_landing_page/app/console/layout.tsx +++ b/refer_landing_page/app/console/layout.tsx @@ -6,6 +6,7 @@ import { usePathname, useRouter } from "next/navigation"; import { getClientToken, removeClientToken } from "./_components/AdminComponents"; import { AdminLoginForm } from "./_components/AdminLoginForm"; import { adminVerifyToken } from "../../lib/adminApi"; +import ThemeToggle from "@/components/ThemeToggle"; export default function AdminLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); @@ -98,7 +99,10 @@ export default function AdminLayout({ children }: { children: React.ReactNode })
ANL Console - Admin +
+ Admin + +

Lab Data Management