diff --git a/src/app/(staff)/staff/clients/add/page.tsx b/src/app/(staff)/staff/clients/add/page.tsx new file mode 100644 index 0000000..4e6e59d --- /dev/null +++ b/src/app/(staff)/staff/clients/add/page.tsx @@ -0,0 +1,22 @@ +import type { Metadata } from "next"; +import { redirect } from "next/navigation"; +import { TopNav } from "@/components/navigation/top-nav"; +import { getActingBusinessContext } from "@/lib/business/get-acting-business-context"; +import { AddClientForm } from "@/features/staff/components/add-client-form"; + +export const metadata: Metadata = { title: "Add Client" }; +export const dynamic = "force-dynamic"; + +export default async function AddClientPage() { + const context = await getActingBusinessContext(); + if (!context) redirect("/home"); + + return ( +
+ +
+ +
+
+ ); +} diff --git a/src/app/(staff)/staff/clients/page.tsx b/src/app/(staff)/staff/clients/page.tsx index 8a2005d..11a214c 100644 --- a/src/app/(staff)/staff/clients/page.tsx +++ b/src/app/(staff)/staff/clients/page.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next"; -import { Search, Users } from "lucide-react"; +import { Plus, Search, Users } from "lucide-react"; import Link from "next/link"; import { redirect } from "next/navigation"; import { EmptyState } from "@/components/feedback/empty-state"; @@ -78,6 +78,15 @@ export default async function StaffClientsPage({ sticky className="bg-stone" leftAction={} + action={ + +