From f58bcd3c77d440dd1049d99aa6527eaa9ef87ba4 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 15 Sep 2026 09:44:59 +0800 Subject: [PATCH] fix(1895): components/common/PointsBadge/index.tsx - fix TS errors (props, arg count, RechargeOutlined, stale GeneratePage, no-unused) --- apps/web/src/components/common/PointsBadge/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/common/PointsBadge/index.tsx b/apps/web/src/components/common/PointsBadge/index.tsx index 99512421a..3c26fff21 100644 --- a/apps/web/src/components/common/PointsBadge/index.tsx +++ b/apps/web/src/components/common/PointsBadge/index.tsx @@ -19,7 +19,7 @@ const { Text, Paragraph } = Typography const PointsBadge: React.FC = () => { const navigate = useNavigate() - const { balance, subscription, init, loading } = usePointsStore() + const { balance, init, loading } = usePointsStore() useEffect(() => { if (!balance) init() @@ -30,11 +30,11 @@ const PointsBadge: React.FC = () => { const zero = bal === 0 const isMember = !!balance?.is_member const memberLabel = isMember - ? subscription?.member_type === "yearly" + ? balance?.member_type === "yearly" ? "年卡会员" - : subscription?.member_type === "quarterly" + : balance?.member_type === "quarterly" ? "季卡会员" - : subscription?.member_type === "monthly" + : balance?.member_type === "monthly" ? "月卡会员" : "付费会员" : "免费会员"