diff --git a/src/app/(dev)/account/client-page.tsx b/src/app/(dev)/account/client-page.tsx index 19fc6fc2..b441ce3d 100644 --- a/src/app/(dev)/account/client-page.tsx +++ b/src/app/(dev)/account/client-page.tsx @@ -8,7 +8,6 @@ import { z } from "zod"; import { BackNavigationBar } from "@/components/BackNavigationBar"; import { TextInput } from "@/components/TextInput"; import { Button } from "@/components/ui/button"; -// import { useRouter } from "next/router"; import { cn } from "@/lib/utils"; import type { PlayLevel } from "@/types/types"; diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index bd4a4c1c..79187353 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -1,4 +1,4 @@ -import { CalendarClock, CalendarDays } from "lucide-react"; +import { CalendarClock, CalendarDays, Users } from "lucide-react"; import { BsPersonFillCheck } from "react-icons/bs"; import { DashboardButton } from "@/components/admin/DashboardButton"; @@ -25,8 +25,11 @@ export default async function AdminDashboardPage() { Edit Semester Schedules + Manage Members + + - Members + Approve Members diff --git a/src/components/admin/members/MemberManagementTable/MemberManagementTable.tsx b/src/components/admin/members/MemberManagementTable/MemberManagementTable.tsx index 486d3e82..84c4fd6a 100644 --- a/src/components/admin/members/MemberManagementTable/MemberManagementTable.tsx +++ b/src/components/admin/members/MemberManagementTable/MemberManagementTable.tsx @@ -1,6 +1,6 @@ "use client"; -import { useMemo, useState } from "react"; +import { useMemo } from "react"; import { getCoreRowModel, getPaginationRowModel, @@ -58,10 +58,10 @@ export function MemberManagementTable({ className }: { className?: string }) { Name Email - + Prepaid Sessions - + Actions diff --git a/src/components/admin/members/MemberManagementTable/MemberManagementTableRow.tsx b/src/components/admin/members/MemberManagementTable/MemberManagementTableRow.tsx index acf022db..94d478ea 100644 --- a/src/components/admin/members/MemberManagementTable/MemberManagementTableRow.tsx +++ b/src/components/admin/members/MemberManagementTable/MemberManagementTableRow.tsx @@ -1,11 +1,7 @@ "use client"; -import React from "react"; -import { zodResolver } from "@hookform/resolvers/zod"; import type { Row } from "@tanstack/react-table"; -import { Ellipsis } from "lucide-react"; -import { useForm } from "react-hook-form"; -import { z } from "zod"; + import { Button } from "@/components/ui/button"; import { TableCell, TableRow } from "@/components/ui/table"; import type { Member } from "./columns"; @@ -15,25 +11,9 @@ interface MemberManagementTableRowProps { userId: string; } -const formSchema = z.object({ - prepaidSessions: z - .string() - .min(1, "Field is required") - .pipe(z.coerce.number().positive()), -}); - export function MemberManagementTableRow({ row, - userId, }: MemberManagementTableRowProps) { - const { - register, - handleSubmit, - formState: { errors, touchedFields }, - } = useForm>({ - resolver: zodResolver(formSchema), - }); - const name: string = row.getValue("name"); const email: string = row.getValue("email"); const prepaidSessions: string = row.getValue("prepaidSessions"); diff --git a/src/components/admin/members/MemberManagementTable/index.ts b/src/components/admin/members/MemberManagementTable/index.ts index c8ace367..49b27ece 100644 --- a/src/components/admin/members/MemberManagementTable/index.ts +++ b/src/components/admin/members/MemberManagementTable/index.ts @@ -1 +1 @@ -export * from "./MemberManagementlTable"; +export * from "./MemberManagementTable";