aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(dash)
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-07-04 15:37:08 -0500
committerDhravya <[email protected]>2024-07-04 15:37:08 -0500
commit0da431db2bdbaf91e4512a01d97f840d7d8ef40c (patch)
tree4557b6a8e9c569a0d34ce61777ad8fe2afab9746 /apps/web/app/(dash)
parentsmall fixes with prompt formatting and browser rendering] (diff)
downloadsupermemory-0da431db2bdbaf91e4512a01d97f840d7d8ef40c.tar.xz
supermemory-0da431db2bdbaf91e4512a01d97f840d7d8ef40c.zip
UX: Load while creating memory
Diffstat (limited to 'apps/web/app/(dash)')
-rw-r--r--apps/web/app/(dash)/menu.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx
index 11738391..6cea35a4 100644
--- a/apps/web/app/(dash)/menu.tsx
+++ b/apps/web/app/(dash)/menu.tsx
@@ -109,7 +109,10 @@ function Menu() {
const handleSubmit = async (content?: string, space?: string) => {
setDialogOpen(false);
- toast.info("Creating memory...");
+ toast.info("Creating memory...", {
+ icon: <PlusCircleIcon className="w-4 h-4 text-white animate-spin" />,
+ duration: 7500,
+ });
if (!content || content.length === 0) {
toast.error("Content is required");
@@ -124,7 +127,9 @@ function Menu() {
setContent("");
if (cont.success) {
- toast.success("Memory created");
+ toast.success("Memory created", {
+ richColors: true,
+ });
} else {
toast.error(`Memory creation failed: ${cont.error}`);
}