From 1a543da5a018d1a99b51bfe5d7d90edff0502a11 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 31 Aug 2023 18:33:29 +0800
Subject: Fix a fatal bug in geometry.

---
 FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx')

diff --git a/FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx b/FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx
index 96ae971b..0df10411 100644
--- a/FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx
+++ b/FrontEnd/src/pages/setting/ChangeAvatarDialog.tsx
@@ -109,7 +109,6 @@ export default function ChangeAvatarDialog() {
 
   const cancelButton = {
     key: "cancel",
-    action: "secondary",
     text: "operationDialog.cancel",
     onClick: close,
   } as const;
@@ -117,7 +116,6 @@ export default function ChangeAvatarDialog() {
   const createPreviousButton = (onClick: () => void) =>
     ({
       key: "previous",
-      action: "secondary",
       text: "operationDialog.previousStep",
       onClick,
     }) as const;
@@ -130,7 +128,7 @@ export default function ChangeAvatarDialog() {
       cancelButton,
       {
         key: "next",
-        action: "primary",
+        action: "major",
         text: "operationDialog.nextStep",
         onClick: () => setState("crop"),
         disabled: file == null,
@@ -141,7 +139,7 @@ export default function ChangeAvatarDialog() {
       createPreviousButton(onCropPrevious),
       {
         key: "next",
-        action: "primary",
+        action: "major",
         text: "operationDialog.nextStep",
         onClick: onCropNext,
         disabled: !canCrop,
@@ -153,7 +151,7 @@ export default function ChangeAvatarDialog() {
       createPreviousButton(onPreviewPrevious),
       {
         key: "upload",
-        action: "primary",
+        action: "major",
         text: "settings.dialogChangeAvatar.upload",
         onClick: upload,
       },
@@ -171,7 +169,7 @@ export default function ChangeAvatarDialog() {
       cancelButton,
       {
         key: "retry",
-        action: "primary",
+        action: "major",
         text: "operationDialog.retry",
         onClick: upload,
       },
-- 
cgit v1.2.3

