diff --git a/src/app/admin/classes/page.tsx b/src/app/admin/classes/page.tsx new file mode 100644 index 0000000..f5783d8 --- /dev/null +++ b/src/app/admin/classes/page.tsx @@ -0,0 +1,9 @@ +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Classes | Toogether", +}; + +export default async function Page() { + return

Classes

; +} diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx index cec59fb..f193c6e 100644 --- a/src/app/admin/layout.tsx +++ b/src/app/admin/layout.tsx @@ -2,7 +2,7 @@ import { Sidebar } from "@/app/components/Sidebar"; export default function Layout({ children }: { children: React.ReactNode }) { return ( -
+
{children}
diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 84ca1fc..e143f09 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -1,10 +1,9 @@ import { Metadata } from "next"; -import { Sidebar } from "../components/Sidebar"; export const metadata: Metadata = { - title: "Toogether Admin", + title: "Admin | Toogether", }; -export default async function AdminPage() { - return ; +export default async function Page() { + return

Admin Home

; } diff --git a/src/app/admin/rooms/page.tsx b/src/app/admin/rooms/page.tsx new file mode 100644 index 0000000..ef357f0 --- /dev/null +++ b/src/app/admin/rooms/page.tsx @@ -0,0 +1,9 @@ +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Rooms | Toogether", +}; + +export default async function Page() { + return

Rooms

; +} diff --git a/src/app/admin/settings/page.tsx b/src/app/admin/settings/page.tsx new file mode 100644 index 0000000..509c111 --- /dev/null +++ b/src/app/admin/settings/page.tsx @@ -0,0 +1,9 @@ +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Settings | Toogether", +}; + +export default async function Page() { + return

Settings

; +} diff --git a/src/app/admin/users/page.tsx b/src/app/admin/users/page.tsx new file mode 100644 index 0000000..948603f --- /dev/null +++ b/src/app/admin/users/page.tsx @@ -0,0 +1,9 @@ +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Users | Toogether", +}; + +export default async function Page() { + return

Users

; +} diff --git a/src/app/components/Header/contents.tsx b/src/app/components/Header/contents.tsx index e2ab9cf..0c0c811 100644 --- a/src/app/components/Header/contents.tsx +++ b/src/app/components/Header/contents.tsx @@ -1,4 +1,6 @@ "use client"; +import { useClassStore } from "@/app/stores/classStore"; +import { useUserStore } from "@/app/stores/userStore"; import { User } from "@/app/types/next-auth"; import { getInitials } from "@/app/utils/initial"; import { @@ -18,8 +20,6 @@ import { import { useRouter } from "next/navigation"; import { useEffect } from "react"; import { ThemeSwitcher } from "../ThemeSwitcher/ThemeSwitcher"; -import { useUserStore } from "@/app/stores/userStore"; -import { useClassStore } from "@/app/stores/classStore"; export const HeaderContent = ({ user }: { user?: User }) => { const router = useRouter(); diff --git a/src/app/components/Room/Card.tsx b/src/app/components/Room/Card.tsx index 69866de..3ce2cd5 100644 --- a/src/app/components/Room/Card.tsx +++ b/src/app/components/Room/Card.tsx @@ -70,11 +70,9 @@ export const RoomCard = ({ id, name, date, Times, Presentator }: Room) => { {moment(date).dayOfYear() === moment().dayOfYear() && (