diff --git a/app/tenants/DeleteTenantButton.tsx b/app/tenants/DeleteTenantButton.tsx new file mode 100644 index 0000000..fd9d6f9 --- /dev/null +++ b/app/tenants/DeleteTenantButton.tsx @@ -0,0 +1,30 @@ +"use client"; + +import { deleteTenant } from "./actions"; + +export function DeleteTenantButton({ + accountId, + accountName, +}: { + accountId: number; + accountName: string; +}) { + return ( +
+ ); +} diff --git a/app/tenants/page.tsx b/app/tenants/page.tsx index 890daca..0c9ab17 100644 --- a/app/tenants/page.tsx +++ b/app/tenants/page.tsx @@ -1,8 +1,9 @@ import { redirect } from "next/navigation"; import { getSession } from "../../lib/auth"; import { listAccounts } from "../../lib/platform-db"; -import { createTenant, deleteTenant } from "./actions"; +import { createTenant } from "./actions"; import { logout } from "./logout"; +import { DeleteTenantButton } from "./DeleteTenantButton"; export default async function TenantsPage({ searchParams, @@ -42,10 +43,10 @@ export default async function TenantsPage({ {/* Overzicht */}Nog geen tenants aangemaakt.
+Nog geen sociaal ondernemers aangemaakt.
) : (|
-
+ |
))}
@@ -107,10 +100,10 @@ export default async function TenantsPage({
)}
- {/* Nieuw tenant formulier */}
+ {/* Nieuwe sociaal ondernemer formulier */}