fix(1895): components/common/PointsBadge/index.tsx - fix TS errors (props, arg count, RechargeOutlined, stale GeneratePage, no-unused)
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Validate - Style (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 29h38m43s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 29h38m8s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 29h38m7s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 29h38m6s

This commit is contained in:
2026-09-15 09:44:59 +08:00
parent 154332081f
commit f58bcd3c77
@@ -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"
? "月卡会员"
: "付费会员"
: "免费会员"