diff options
author | crupest <crupest@outlook.com> | 2023-09-20 19:37:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-09-20 19:37:02 +0800 |
commit | e06f1a33e678ac264f9290013f49237ea97e699b (patch) | |
tree | 4179594a70bc36821df4326adb3246e2d55eee4e /FrontEnd/src/components/dialog/ConfirmDialog.tsx | |
parent | bdc69c18c1986544497b6974ffe5d8e073e4be6d (diff) | |
download | timeline-e06f1a33e678ac264f9290013f49237ea97e699b.tar.gz timeline-e06f1a33e678ac264f9290013f49237ea97e699b.tar.bz2 timeline-e06f1a33e678ac264f9290013f49237ea97e699b.zip |
...
Diffstat (limited to 'FrontEnd/src/components/dialog/ConfirmDialog.tsx')
-rw-r--r-- | FrontEnd/src/components/dialog/ConfirmDialog.tsx | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/FrontEnd/src/components/dialog/ConfirmDialog.tsx b/FrontEnd/src/components/dialog/ConfirmDialog.tsx index 97cad452..8b0a4219 100644 --- a/FrontEnd/src/components/dialog/ConfirmDialog.tsx +++ b/FrontEnd/src/components/dialog/ConfirmDialog.tsx @@ -25,27 +25,24 @@ export default function ConfirmDialog({ <DialogContainer title={title} titleColor={color ?? "danger"} - buttons={[ + buttonsV2={[ { key: "cancel", type: "normal", - props: { - text: "operationDialog.cancel", - color: "secondary", - outline: true, - onClick: closeDialog, - }, + action: "minor", + + text: "operationDialog.cancel", + onClick: closeDialog, }, { key: "confirm", type: "normal", - props: { - text: "operationDialog.confirm", - color: "danger", - onClick: () => { - onConfirm(); - closeDialog(); - }, + action: "major", + text: "operationDialog.confirm", + color: "danger", + onClick: () => { + onConfirm(); + closeDialog(); }, }, ]} |