Skip to content

Commit

Permalink
fix(dashboard): variant update success toast (medusajs#9325)
Browse files Browse the repository at this point in the history
FIXES CC-509
  • Loading branch information
fPolic authored and panalgin committed Oct 7, 2024
1 parent 786b1ec commit 55cf556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/admin/dashboard/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@
},
"variant": {
"edit": {
"header": "Edit Variant"
"header": "Edit Variant",
"success": "Product variant edited sucessfully"
},
"create": {
"header": "Variant details"
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -113,6 +113,7 @@ export const ProductEditVariantForm = ({
{
onSuccess: () => {
handleSuccess("../")
toast.success(t("products.variant.edit.success"))
},
}
)
Expand Down

0 comments on commit 55cf556

Please sign in to comment.