diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-06 12:04:30 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-06 12:04:30 +0700 |
| commit | 620223f151700bbd91a33d32e2a4c29d4c287e9d (patch) | |
| tree | 8151774bc1f595fcc688b376e1e0c710efe3bf2e /src/components/elements/ConfirmAlert.js | |
| parent | dfff0da443a3e2d92b92c7c1632ca16e1da94e61 (diff) | |
no message
Diffstat (limited to 'src/components/elements/ConfirmAlert.js')
| -rw-r--r-- | src/components/elements/ConfirmAlert.js | 6 |
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> </> |
