fix(dashboard): product option delete message (#8934)

FIXES CC-408
This commit is contained in:
Frane Polić
2024-09-02 13:56:56 +02:00
committed by GitHub
parent 0ce584029c
commit 56ceeeb4c7
2 changed files with 5 additions and 3 deletions

View File

@@ -574,7 +574,9 @@
"create": {
"header": "Create Option",
"successToast": "Option {{title}} was successfully created."
}
},
"deleteWarning": "You are about to delete the product option: {{title}}. This action cannot be undone."
},
"organization": {
"header": "Organize",

View File

@@ -20,8 +20,8 @@ const OptionActions = ({
const handleDelete = async () => {
const res = await prompt({
title: t("general.areYouSure"),
description: t("products.deleteWarning", {
title: product.title,
description: t("products.options.deleteWarning", {
title: option.title,
}),
confirmText: t("actions.delete"),
cancelText: t("actions.cancel"),