Skip to content

Let's use AI to Earn!

fix: Fix the deprecated feature of Modal

gaoSirfe10764656fc
diff --git a/src/app/[lng]/tasks/taskPageCore.tsx b/src/app/[lng]/tasks/taskPageCore.tsx
index 088c90fe..8ed83383 100644
--- a/src/app/[lng]/tasks/taskPageCore.tsx
+++ b/src/app/[lng]/tasks/taskPageCore.tsx
@@ -1871,7 +1871,7 @@ export default function TaskPageCore() {
]}
width={previewMedia?.type === 'video' ? 800 : 600}
zIndex={3000}
- destroyOnClose={true}
+ destroyOnHidden={true}
styles={{
body: {
padding: '24px',
diff --git a/src/app/[lng]/wallet/page.tsx b/src/app/[lng]/wallet/page.tsx
index cb01fd07..e3213ec2 100644
--- a/src/app/[lng]/wallet/page.tsx
+++ b/src/app/[lng]/wallet/page.tsx
@@ -239,7 +239,7 @@ export default function WalletPage() {
onCancel={() => setModalOpen(false)}
onOk={onSubmit}
confirmLoading={submitting}
- destroyOnClose
+ destroyOnHidden
width="90%"
style={{
maxWidth: '500px',
diff --git a/src/components/modals/PointsDetailModal.tsx b/src/components/modals/PointsDetailModal.tsx
index 639d9bcd..4273e878 100644
--- a/src/components/modals/PointsDetailModal.tsx
+++ b/src/components/modals/PointsDetailModal.tsx
@@ -73,7 +73,7 @@ const PointsDetailModal = memo(({ open, onClose }: PointsDetailModalProps) => {
footer={null}
width={980}
className={styles.outsideCloseModal}
- destroyOnClose
+ destroyOnHidden
centered
>
<div style={{ background: '#fff', borderRadius: 12 }}>
diff --git a/src/components/modals/PointsRechargeModal.tsx b/src/components/modals/PointsRechargeModal.tsx
index cdbddef1..54ecd368 100644
--- a/src/components/modals/PointsRechargeModal.tsx
+++ b/src/components/modals/PointsRechargeModal.tsx
@@ -69,7 +69,7 @@ const PointsRechargeModal = memo(({ open, onClose }: PointsRechargeModalProps) =
width={modalWidth}
centered
className={styles.outsideCloseModal}
- destroyOnClose
+ destroyOnHidden
>
<Space direction="vertical" size={16} style={{width:'100%'}}>
<div style={{display:'flex', justifyContent:'space-between', alignItems:'center', marginTop:18}}>
diff --git a/src/components/modals/SubscriptionManagementModal.tsx b/src/components/modals/SubscriptionManagementModal.tsx
index e1cea540..5e465f3c 100644
--- a/src/components/modals/SubscriptionManagementModal.tsx
+++ b/src/components/modals/SubscriptionManagementModal.tsx
@@ -190,7 +190,7 @@ const SubscriptionManagementModal = memo(({ open, onClose }: SubscriptionManagem
width={1000}
className={styles.subscriptionModal}
- destroyOnClose
+ destroyOnHidden
centered
>
<div className={styles.modalContent}>
diff --git a/src/components/modals/VipContentModal.tsx b/src/components/modals/VipContentModal.tsx
index 349d38ba..12f6717a 100644
--- a/src/components/modals/VipContentModal.tsx
+++ b/src/components/modals/VipContentModal.tsx
@@ -159,7 +159,7 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
footer={null}
width={modalWidth}
className={styles.outsideCloseModal}
- destroyOnClose
+ destroyOnHidden
centered
>
<div className={vipStyles.wrapper}>