feat: 更新 eslint 配置
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
import { motion, AnimatePresence } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import dayjs from 'dayjs';
|
||||
import utc from 'dayjs/plugin/utc';
|
||||
import timezone from 'dayjs/plugin/timezone';
|
||||
@@ -227,19 +228,25 @@ export function DonateTabs() {
|
||||
justifyContent: 'center'
|
||||
}}
|
||||
>
|
||||
{method === 'alipay' ? (
|
||||
<img
|
||||
src={zhifubaoImg.src}
|
||||
alt="支付宝收款码"
|
||||
style={{ width: '100%', height: '100%', objectFit: 'contain' }}
|
||||
/>
|
||||
) : (
|
||||
<img
|
||||
src={weixinImg.src}
|
||||
alt="微信收款码"
|
||||
style={{ width: '100%', height: '100%', objectFit: 'contain' }}
|
||||
/>
|
||||
)}
|
||||
<div style={{ width: '100%', height: '100%', position: 'relative' }}>
|
||||
{method === 'alipay' ? (
|
||||
<Image
|
||||
src={zhifubaoImg}
|
||||
alt="支付宝收款码"
|
||||
fill
|
||||
sizes="184px"
|
||||
style={{ objectFit: 'contain' }}
|
||||
/>
|
||||
) : (
|
||||
<Image
|
||||
src={weixinImg}
|
||||
alt="微信收款码"
|
||||
fill
|
||||
sizes="184px"
|
||||
style={{ objectFit: 'contain' }}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function FundTrendChart({ code, isExpanded, onToggleExpand }) {
|
||||
|
||||
}
|
||||
return () => { active = false; };
|
||||
}, [code, range, isExpanded]);
|
||||
}, [code, range, isExpanded, data.length]);
|
||||
|
||||
const ranges = [
|
||||
{ label: '近1月', value: '1m' },
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function HoldingEditModal({ fund, holding, onClose, onSave }) {
|
||||
setProfit(p.toFixed(2));
|
||||
}
|
||||
}
|
||||
}, [holding, fund]);
|
||||
}, [holding, fund, dwjz]);
|
||||
|
||||
const handleModeChange = (newMode) => {
|
||||
if (newMode === mode) return;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { motion } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { CloseIcon } from './Icons';
|
||||
import weChatGroupImg from '../assets/weChatGroup.jpg';
|
||||
|
||||
@@ -34,7 +35,12 @@ export default function WeChatModal({ onClose }) {
|
||||
</button>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<img src={weChatGroupImg.src} alt="WeChat Group" style={{ maxWidth: '100%', borderRadius: '8px' }} />
|
||||
<Image
|
||||
src={weChatGroupImg}
|
||||
alt="WeChat Group"
|
||||
sizes="(max-width: 360px) 100vw, 360px"
|
||||
style={{ width: '100%', height: 'auto', borderRadius: '8px' }}
|
||||
/>
|
||||
</div>
|
||||
<p className="muted" style={{ textAlign: 'center', marginTop: 16, fontSize: '14px' }}>
|
||||
扫码加入群聊,获取最新更新与交流
|
||||
|
||||
Reference in New Issue
Block a user