summaryrefslogtreecommitdiff
path: root/src/components/elements/ConfirmAlert.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/elements/ConfirmAlert.js')
-rw-r--r--src/components/elements/ConfirmAlert.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/elements/ConfirmAlert.js b/src/components/elements/ConfirmAlert.js
index 27155011..96f4029d 100644
--- a/src/components/elements/ConfirmAlert.js
+++ b/src/components/elements/ConfirmAlert.js
@@ -4,6 +4,8 @@ const ConfirmAlert = ({
show,
onClose,
onSubmit,
+ closeText,
+ submitText
}) => {
return (
<>
@@ -14,8 +16,8 @@ const ConfirmAlert = ({
<p className="h2 mb-2">{title}</p>
<p className="text-gray_r-11 mb-6">{caption}</p>
<div className="flex gap-x-2">
- <button className="flex-1 btn-light" onClick={onClose}>Batal</button>
- <button className="flex-1 btn-red" onClick={onSubmit}>Hapus</button>
+ <button className="flex-1 btn-light" onClick={onClose}>{closeText}</button>
+ <button className="flex-1 btn-red" onClick={onSubmit}>{submitText}</button>
</div>
</div>
</>