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 { Metadata } from "next";
|
||||||
import { AdminHeader } from "../components/Header/admin";
|
import { AdminHeader } from "../components/Header/admin";
|
||||||
import { getServerSession } from "next-auth";
|
|
||||||
import { authOptions } from "@/authOptions";
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Toogether Admin",
|
title: "Toogether Admin",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function AdminPage() {
|
export default async function AdminPage() {
|
||||||
const session = await getServerSession(authOptions);
|
|
||||||
|
|
||||||
return <AdminHeader />;
|
return <AdminHeader />;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user