From dedf92965b5a918aa4b294f9db04df6ae8053cd8 Mon Sep 17 00:00:00 2001 From: Gunshiz Date: Thu, 28 May 2026 20:30:25 +0700 Subject: [PATCH] refactor: update disabled form UI to use Card component and remove redundant Toaster from layout --- app/form/client.tsx | 12 ++++++++---- app/form/layout.tsx | 2 -- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/form/client.tsx b/app/form/client.tsx index b1c311a..eae2446 100644 --- a/app/form/client.tsx +++ b/app/form/client.tsx @@ -185,10 +185,14 @@ export function FormFillerClient({ form, questions, initialAnswers = {} }: FormF return (
{!form.isOpen && ( -
-
-

This form disable for now

-
+
+ + + + This form is disabled for now + + +
)}
diff --git a/app/form/layout.tsx b/app/form/layout.tsx index a24877e..c99c24f 100644 --- a/app/form/layout.tsx +++ b/app/form/layout.tsx @@ -1,6 +1,5 @@ import { getServerSession } from "next-auth"; import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -import { Toaster } from "@/components/ui/sonner"; import { FormLayoutClient } from "./client"; import LoginDialog from "@/components/login-dialog"; @@ -25,7 +24,6 @@ export default async function FormLayout({ )}
{children}
- {!session && }
);