22 lines
929 B
Plaintext
22 lines
929 B
Plaintext
|
|
The file /home/project/src/pages/textile/Dashboard.tsx has been updated. Made 1 replacement.
|
||
|
|
|
||
|
|
Here's the result of running `cat -n` on a snippet of the edited file:
|
||
|
|
28→ { id: 'payment', icon: CreditCard, label: '待结款', path: '/textile/payments', gradient: 'from-emerald-400 to-green-400', description: '查看待结款项' }
|
||
|
|
29→ ];
|
||
|
|
30→};
|
||
|
|
31→
|
||
|
|
32→// 简化的动画配置 - 针对低配置电脑优化
|
||
|
|
33→const containerVariants = {
|
||
|
|
34→ hidden: { opacity: 0 },
|
||
|
|
35→ visible: { opacity: 1, transition: { staggerChildren: 0.03, delayChildren: 0.05 } }
|
||
|
|
36→};
|
||
|
|
37→
|
||
|
|
38→const itemVariants = {
|
||
|
|
39→ hidden: { opacity: 0 },
|
||
|
|
40→ visible: { opacity: 1, transition: { duration: 0.2 } }
|
||
|
|
41→};
|
||
|
|
42→
|
||
|
|
43→export function TextileDashboard() {
|
||
|
|
44→ const navigate = useNavigate();
|
||
|
|
45→ const { auth, logout } = useAuth();
|
||
|
|
46→ const { isMobile } = useResponsive();
|