UX: Load while creating memory

This commit is contained in:
Dhravya 2024-07-04 15:37:08 -05:00
parent ebb9dcca8e
commit 0da431db2b
3 changed files with 9 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4d21045a45fdbf56b7483d3704ae0474ebf044fb
Subproject commit 0135d8813311b6825382f411cda13f5663b6c462

View file

@ -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}`);
}

View file

@ -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",
}}