Skip to content

Commit b240194

Browse files
葛锐葛锐
authored andcommitted
feat(frontend): swap button styles in AgentImportWizard warning modal
- Change cancel button to primary (blue) style - Change ok button to default (gray) style for better UX in warning dialog
1 parent b84e702 commit b240194

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/components/agent/AgentImportWizard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,11 @@ export default function AgentImportWizard({
820820
),
821821
okText: t("market.install.warning.continue", "Continue Anyway"),
822822
cancelText: t("market.install.warning.goBack", "Go Back to Configure"),
823+
cancelButtonProps: {
824+
type: "primary",
825+
},
823826
okButtonProps: {
824-
className: "bg-blue-600 hover:bg-blue-700 border-blue-600 hover:border-blue-700 text-white",
827+
type: "default",
825828
},
826829
onOk: async () => {
827830
await performImport();

0 commit comments

Comments
 (0)