Add complete production-ready Ysterbaard PocketBase registry browser frontend: - Next.js 14 App Router with TypeScript, Tailwind CSS, and TanStack React Query - Secure server-side PocketBase API proxy to avoid exposing superuser tokens - Read-only directors and companies registry browse pages with search, filtering, and pagination - Client onboarding workflow for creating and managing client submissions - Docker container configuration for easy deployment - All supporting UI components, utility functions, and configuration files
23 lines
777 B
TypeScript
23 lines
777 B
TypeScript
// app/(public)/layout.tsx
|
|
// Wraps public, no-auth routes (the client-facing onboarding wizard at
|
|
// /onboard/[token]). Strips the internal NavBar and footer — clients
|
|
// should see only their intake form.
|
|
//
|
|
// IMPORTANT: this layout does NOT render its own <html><body>. The root
|
|
// app/layout.tsx owns those. Re-declaring them here causes nested
|
|
// <html>/<body> tags and a React hydration mismatch (Next.js error:
|
|
// "Expected server HTML to contain a matching <div> in <body>").
|
|
|
|
export const metadata = {
|
|
title: "Workflow · Client onboarding",
|
|
description: "Workflow client onboarding intake form.",
|
|
robots: { index: false, follow: false }
|
|
};
|
|
|
|
export default function PublicLayout({
|
|
children
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return <>{children}</>;
|
|
}
|