-
-
- {error &&
{error}
}
-
-
- Don't have an account yet?{" "}
-
- Sign up!
-
-
+
+
+
+
+
+ Don't have an account yet?
+
+
+
+
-
+
)
}
diff --git a/src/components/molecules/ProfilePasswordForm/ProfilePasswordForm.tsx b/src/components/molecules/ProfilePasswordForm/ProfilePasswordForm.tsx
index 3a702a1a..c1382d50 100644
--- a/src/components/molecules/ProfilePasswordForm/ProfilePasswordForm.tsx
+++ b/src/components/molecules/ProfilePasswordForm/ProfilePasswordForm.tsx
@@ -1,9 +1,8 @@
"use client"
-import { Button, Card } from "@/components/atoms"
+import { Button } from "@/components/atoms"
import { LabeledInput } from "@/components/cells"
import { zodResolver } from "@hookform/resolvers/zod"
-import { CheckCircle } from "@medusajs/icons"
import {
FieldError,
FieldValues,
@@ -13,7 +12,7 @@ import {
UseFormReturn,
} from "react-hook-form"
import { ProfilePasswordFormData, profilePasswordSchema } from "./schema"
-import { useEffect, useState } from "react"
+import { useState } from "react"
import { updateCustomerPassword } from "@/lib/data/customer"
import { Heading, toast } from "@medusajs/ui"
import LocalizedClientLink from "../LocalizedLink/LocalizedLink"
diff --git a/src/components/molecules/RegisterForm/RegisterForm.tsx b/src/components/molecules/RegisterForm/RegisterForm.tsx
index 2f456118..a8498425 100644
--- a/src/components/molecules/RegisterForm/RegisterForm.tsx
+++ b/src/components/molecules/RegisterForm/RegisterForm.tsx
@@ -129,19 +129,17 @@ const Form = () => {
-
+
Already have an account?
-
-
-
-
-
-
+
+
+
+
)
diff --git a/src/lib/helpers/toast.ts b/src/lib/helpers/toast.tsx
similarity index 56%
rename from src/lib/helpers/toast.ts
rename to src/lib/helpers/toast.tsx
index 3c1c5bee..b23490c3 100644
--- a/src/lib/helpers/toast.ts
+++ b/src/lib/helpers/toast.tsx
@@ -1,3 +1,4 @@
+import { DoneIcon, ErrorIcon } from "@/icons";
import { toast as sonnerToast } from "sonner"
export const toast = {
@@ -15,14 +16,25 @@ export const toast = {
title: string
}) => {
sonnerToast.success(title, {
- className: "bg-green-100 text-green-900",
description,
+ duration: 10000,
+ icon:
,
+ classNames: {
+ icon: "self-start pt-2",
+ toast: "items-start gap-3",
+ title: "text-md text-primary",
+ },
})
},
error: ({ description, title }: { description?: string; title: string }) => {
sonnerToast.error(title, {
- className: "bg-red-100 text-red-900",
description,
+ icon:
,
+ classNames: {
+ icon: "self-start pt-2",
+ toast: "items-start gap-3",
+ title: "text-md text-primary"
+ }
})
},
}