fix(ts): 移除未使用的 interface 和 categories 参数
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 16s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m0s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m6s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 39s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m8s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m48s
AI Code Review / AI Code Review (pull_request) Failing after 3m29s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 41s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 49s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 4m48s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m17s
CI/CD Pipeline / Integration Tests (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 / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1169h27m53s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 1169h30m10s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1169h30m27s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1169h33m35s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1169h33m37s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 1170h3m14s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1170h6m39s

This commit is contained in:
2026-07-29 21:52:12 +08:00
parent 728579c777
commit ea5816379b
@@ -2,16 +2,9 @@ import { useMemo, useState } from "react"
import type { TitleData, CategoryItem, Frequency } from "../../types/titleLibrary"
import { ALL_CATEGORY_ID, FREQUENCY_THRESHOLDS } from "../../constants/titleLibrary"
interface UseTitleFiltersOptions {
titles: TitleData[]
categories: CategoryItem[]
activeCatId: string
activeCategory: CategoryItem | undefined
}
export const useTitleFilters = (
titles: TitleData[],
categories: CategoryItem[],
_categories: CategoryItem[],
activeCatId: string,
activeCategory: CategoryItem | undefined,
) => {