removed loading stuff

This commit is contained in:
Dhravya 2024-06-24 23:27:48 -05:00
parent e38a932efd
commit 3d01911315

View file

@ -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