diff --git a/src/renderer/src/pages/settings/AgentSettings/components/PluginDetailModal.tsx b/src/renderer/src/pages/settings/AgentSettings/components/PluginDetailModal.tsx index 85ee1cd31e..d306a6740a 100644 --- a/src/renderer/src/pages/settings/AgentSettings/components/PluginDetailModal.tsx +++ b/src/renderer/src/pages/settings/AgentSettings/components/PluginDetailModal.tsx @@ -1,5 +1,5 @@ import type { PluginMetadata } from '@renderer/types/plugin' -import { Button as AntButton, Input, Modal as AntdModal, Spin, Tag } from 'antd' +import { Button, Input, Modal, Spin, Tag } from 'antd' import { Dot, Download, Edit, Save, Trash2, X } from 'lucide-react' import type { FC } from 'react' import { useEffect, useState } from 'react' @@ -111,7 +111,7 @@ export const PluginDetailModal: FC = ({ if (!plugin) return null const modalContent = ( - = ({ } footer={
- + {installed ? ( - : } @@ -159,9 +159,9 @@ export const PluginDetailModal: FC = ({ onClick={onUninstall} disabled={loading}> {loading ? t('plugins.uninstalling') : t('plugins.uninstall')} - + ) : ( - : } @@ -169,7 +169,7 @@ export const PluginDetailModal: FC = ({ onClick={onInstall} disabled={loading}> {loading ? t('plugins.installing') : t('plugins.install')} - + )}
}> @@ -259,7 +259,7 @@ export const PluginDetailModal: FC = ({
{isEditing ? ( <> - } @@ -267,20 +267,20 @@ export const PluginDetailModal: FC = ({ onClick={handleCancelEdit} disabled={saving}> {t('common.cancel')} - - + ) : ( - } onClick={handleEdit}> + )}
)} @@ -307,7 +307,7 @@ export const PluginDetailModal: FC = ({ )} -
+ ) return createPortal(modalContent, document.body)