Fix: simplified code by having only 1 dynamic message
This commit is contained in:
@@ -27,8 +27,9 @@ function SheetDeleteDialog({
|
|||||||
</IconWrapper>
|
</IconWrapper>
|
||||||
<Title>{t("sheet_delete.title")}</Title>
|
<Title>{t("sheet_delete.title")}</Title>
|
||||||
<Body>
|
<Body>
|
||||||
{t("sheet_delete.message1")} <strong>'{sheetName}'</strong>{" "}
|
{t("sheet_delete.message", {
|
||||||
{t("sheet_delete.message2")}
|
sheetName,
|
||||||
|
})}
|
||||||
</Body>
|
</Body>
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<DeleteButton onClick={onDelete} autoFocus>
|
<DeleteButton onClick={onDelete} autoFocus>
|
||||||
|
|||||||
@@ -70,8 +70,7 @@
|
|||||||
},
|
},
|
||||||
"sheet_delete": {
|
"sheet_delete": {
|
||||||
"title": "Are you sure?",
|
"title": "Are you sure?",
|
||||||
"message1": "The sheet",
|
"message": "The sheet '{{sheetName}}' will be permanently deleted. This action cannot be undone.",
|
||||||
"message2": "will be permanently deleted. This action cannot be undone.",
|
|
||||||
"confirm": "Yes, delete sheet",
|
"confirm": "Yes, delete sheet",
|
||||||
"cancel": "Cancel"
|
"cancel": "Cancel"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user