diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 0000000..f841cf2
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+npx lint-staged
diff --git a/app/components/Common.jsx b/app/components/Common.jsx
index 6d90084..72b0ebb 100644
--- a/app/components/Common.jsx
+++ b/app/components/Common.jsx
@@ -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' ? (
-
- ) : (
-
- )}
+
扫码加入群聊,获取最新更新与交流 diff --git a/app/page.jsx b/app/page.jsx index 0e6a22f..a503d8f 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -2,6 +2,7 @@ import { useEffect, useRef, useState, useMemo, useLayoutEffect, useCallback } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; +import Image from 'next/image'; import { createWorker } from 'tesseract.js'; import { createAvatar } from '@dicebear/core'; import { glass } from '@dicebear/collection'; @@ -514,8 +515,8 @@ export default function HomePage() { useEffect(() => { checkTradingDay(); - // 每分钟检查一次 - const timer = setInterval(checkTradingDay, 60000); + // 每30分钟检查一次 + const timer = setInterval(checkTradingDay, 60000 * 30); return () => clearInterval(timer); }, []); @@ -2768,10 +2769,13 @@ export default function HomePage() { {user ? (