Introduce a follow/unfollow feature for clubs in the ClubSummary component. Users can now toggle their subscription status to a specific club, with the state persisted locally using zustand. Changes include: - Added 'Follow' and 'Unfollow' buttons with corresponding star icons (StarOutlined/StarFilled). - Updated ClubStore to manage a simplified list of clubs (id and name only). - Refactored Data type in ClubSearchTable to use Pick<ClubInfo, 'id' | 'name'>. - Fixed club name in GameSelector clubList to '东华乒乓球俱乐部'. - Excluded follow buttons for club ID '47' (Donghua). The implementation ensures a consistent UI state across the application and persists user preferences. |
||
|---|---|---|
| .. | ||
| components | ||
| context | ||
| dao | ||
| hooks | ||
| page | ||
| prisma | ||
| schedules | ||
| services | ||
| store | ||
| types | ||
| utils | ||
| App.tsx | ||
| frontend.tsx | ||
| global.d.ts | ||
| index.css | ||
| index.html | ||
| index.tsx | ||
| logo.svg | ||
| routes.tsx | ||
| sw.ts | ||