aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app
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
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')
-rw-r--r--apps/web/app/(dash)/menu.tsx9
-rw-r--r--apps/web/app/(landing)/Hero.tsx2
2 files changed, 8 insertions, 3 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}`);
}
diff --git a/apps/web/app/(landing)/Hero.tsx b/apps/web/app/(landing)/Hero.tsx
index 4a0529aa..5565de3a 100644
--- a/apps/web/app/(landing)/Hero.tsx
+++ b/apps/web/app/(landing)/Hero.tsx
@@ -75,7 +75,7 @@ function Hero() {
width={1512}
height={1405}
draggable="false"
- className="z-40 md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 rounded-2xl"
+ className="z-40 md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 !rounded-2xl"
style={{
borderRadius: "20px",
}}