fix(dashboard): variant update success toast (#9325)

FIXES CC-509
This commit is contained in:
Frane Polić authored and GitHub committed 2024-09-26 12:59:59 +00:00
1 parent 22b7a36d2a
commit 474ba92d48
2 files changed
+4 -2

No files matched your search

@@ -534,7 +534,8 @@
}, },
"variant": { "variant": {
"edit": { "edit": {
"header": "Edit Variant" "header": "Edit Variant",
"success": "Product variant edited sucessfully"
}, },
"create": { "create": {
"header": "Variant details" "header": "Variant details"
@@ -1,5 +1,5 @@
import { zodResolver } from "@hookform/resolvers/zod" import { zodResolver } from "@hookform/resolvers/zod"
import { Button, Heading, Input, Switch } from "@medusajs/ui" import { Button, Heading, Input, Switch, toast } from "@medusajs/ui"
import { useForm } from "react-hook-form" import { useForm } from "react-hook-form"
import { useTranslation } from "react-i18next" import { useTranslation } from "react-i18next"
import { z } from "zod" import { z } from "zod"
@@ -113,6 +113,7 @@ export const ProductEditVariantForm = ({
{ {
onSuccess: () => { onSuccess: () => {
handleSuccess("../") handleSuccess("../")
toast.success(t("products.variant.edit.success"))
}, },
} }
) )