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

FIXES CC-509
This commit is contained in:
Frane Polić
2024-09-26 14:59:59 +02:00
committed by GitHub
parent 22b7a36d2a
commit 474ba92d48
2 changed files with 4 additions and 2 deletions

View File

@@ -534,7 +534,8 @@
},
"variant": {
"edit": {
"header": "Edit Variant"
"header": "Edit Variant",
"success": "Product variant edited sucessfully"
},
"create": {
"header": "Variant details"

View File

@@ -1,5 +1,5 @@
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 { useTranslation } from "react-i18next"
import { z } from "zod"
@@ -113,6 +113,7 @@ export const ProductEditVariantForm = ({
{
onSuccess: () => {
handleSuccess("../")
toast.success(t("products.variant.edit.success"))
},
}
)