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 | |
parent | bdc69c18c1986544497b6974ffe5d8e073e4be6d (diff) | |
download | timeline-e06f1a33e678ac264f9290013f49237ea97e699b.tar.gz timeline-e06f1a33e678ac264f9290013f49237ea97e699b.tar.bz2 timeline-e06f1a33e678ac264f9290013f49237ea97e699b.zip |
...
Diffstat (limited to 'FrontEnd/src/components/dialog')
-rw-r--r-- | FrontEnd/src/components/dialog/ConfirmDialog.tsx | 25 | ||||
-rw-r--r-- | FrontEnd/src/components/dialog/DialogContainer.css | 3 |
2 files changed, 13 insertions, 15 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(); }, }, ]} diff --git a/FrontEnd/src/components/dialog/DialogContainer.css b/FrontEnd/src/components/dialog/DialogContainer.css index b3c52511..f0d27a66 100644 --- a/FrontEnd/src/components/dialog/DialogContainer.css +++ b/FrontEnd/src/components/dialog/DialogContainer.css @@ -7,6 +7,7 @@ .cru-dialog-container-hr { margin: 1em 0; + border-color: var(--cru-text-minor-color); } .cru-dialog-container-button-row { @@ -16,4 +17,4 @@ .cru-dialog-container-button { margin-left: 1em; -}
\ No newline at end of file +} |