diff options
| author | Dhravya <[email protected]> | 2024-06-24 23:27:48 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-24 23:27:48 -0500 |
| commit | 3d0191131531783f45f65510f03083c7b1e84d81 (patch) | |
| tree | a583ef243de51a04cafc0fe824e879b545474048 | |
| parent | minor fixes (diff) | |
| download | supermemory-3d0191131531783f45f65510f03083c7b1e84d81.tar.xz supermemory-3d0191131531783f45f65510f03083c7b1e84d81.zip | |
removed loading stuff
| -rw-r--r-- | apps/web/app/(dash)/dynamicisland.tsx | 8 |
1 files 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({ </SelectContent> </Select> </div> - <div key={`${loading}-${pending}`}> - {loading ? <div>Loading...</div> : "not loading"} - </div> <div> <Label className="text-[#858B92]" htmlFor="name"> Page Url |