diff --git a/src/renderer/src/components/Popups/ExportToPhoneLanPopup.tsx b/src/renderer/src/components/Popups/ExportToPhoneLanPopup.tsx
index 1920d0b210..61539d34ca 100644
--- a/src/renderer/src/components/Popups/ExportToPhoneLanPopup.tsx
+++ b/src/renderer/src/components/Popups/ExportToPhoneLanPopup.tsx
@@ -1,11 +1,8 @@
-import { Button } from '@heroui/button'
-import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from '@heroui/modal'
-import { Progress } from '@heroui/progress'
-import { Spinner } from '@heroui/spinner'
import { loggerService } from '@logger'
import { AppLogo } from '@renderer/config/env'
import { SettingHelpText, SettingRow } from '@renderer/pages/settings'
import type { WebSocketCandidatesResponse } from '@shared/config/types'
+import { Button, Modal, Progress, Spin } from 'antd'
import { QRCodeSVG } from 'qrcode.react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -25,7 +22,7 @@ const LoadingQRCode: React.FC = () => {
const { t } = useTranslation()
return (
-
+
{t('settings.data.export_to_phone.lan.generating_qr')}
@@ -72,7 +69,7 @@ const ConnectingAnimation: React.FC = () => {
borderRadius: '12px',
backgroundColor: 'var(--color-status-warning)'
}}>
-
+
{t('settings.data.export_to_phone.lan.status.connecting')}
@@ -441,11 +438,9 @@ const PopupContainer: React.FC
= ({ resolve }) => {
@@ -488,95 +483,83 @@ const PopupContainer: React.FC = ({ resolve }) => {
return (
{
- if (!open) {
- handleCancel()
- }
- }}
- isDismissable={false}
- isKeyboardDismissDisabled={false}
- placement="center"
- onClose={handleClose}>
-
- {() => (
- <>
- {t('settings.data.export_to_phone.lan.title')}
-
-
-
-
+ open={isOpen}
+ onCancel={handleCancel}
+ afterClose={handleClose}
+ title={t('settings.data.export_to_phone.lan.title')}
+ centered
+ closable={!isSending}
+ maskClosable={false}
+ keyboard={true}
+ footer={
+ showCloseConfirm ? (
+
+
+ ⚠️
+
+ {t('settings.data.export_to_phone.lan.confirm_close_title')}
+
+
+
+ {t('settings.data.export_to_phone.lan.confirm_close_message')}
+
+
+
+
+
+
+ ) : null
+ }>
+
+
+
-
- {t('settings.data.export_to_phone.lan.content')}
-
+
+ {t('settings.data.export_to_phone.lan.content')}
+
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
- {selectedFolderPath || t('settings.data.export_to_phone.lan.noZipSelected')}
-
+
+ {selectedFolderPath || t('settings.data.export_to_phone.lan.noZipSelected')}
+
-
-
-
-
-
- {showCloseConfirm && (
-
-
-
- ⚠️
-
- {t('settings.data.export_to_phone.lan.confirm_close_title')}
-
-
-
- {t('settings.data.export_to_phone.lan.confirm_close_message')}
-
-
-
-
-
-
-
- )}
- >
- )}
-
+
+
+
)
}