From 3d0191131531783f45f65510f03083c7b1e84d81 Mon Sep 17 00:00:00 2001 From: Dhravya Date: Mon, 24 Jun 2024 23:27:48 -0500 Subject: [PATCH] removed loading stuff --- apps/web/app/(dash)/dynamicisland.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx index 43db52f3..1f09fcda 100644 --- a/apps/web/app/(dash)/dynamicisland.tsx +++ b/apps/web/app/(dash)/dynamicisland.tsx @@ -255,17 +255,18 @@ function PageForm({ action={async (e: FormData) => { const content = e.get("content")?.toString(); const space = e.get("space")?.toString(); + + toast.info("Creating memory..."); + if (!content) { toast.error("Content is required"); return; } - setLoading(true); const cont = await createMemory({ content: content, spaces: space ? [space] : undefined, }); - setLoading(false); if (cont.success) { toast.success("Memory created"); } else { @@ -291,9 +292,6 @@ function PageForm({ -
- {loading ?
Loading...
: "not loading"} -