refactor: remove unused session retrieval in AdminPage component
This commit is contained in:
parent
a9d4fbedcf
commit
26e9462dac
@ -1,14 +1,10 @@
|
||||
import { Metadata } from "next";
|
||||
import { AdminHeader } from "../components/Header/admin";
|
||||
import { getServerSession } from "next-auth";
|
||||
import { authOptions } from "@/authOptions";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Toogether Admin",
|
||||
};
|
||||
|
||||
export default async function AdminPage() {
|
||||
const session = await getServerSession(authOptions);
|
||||
|
||||
return <AdminHeader />;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user