From 993ce520f0a19e3768502a1086d78e3eb0948c4d Mon Sep 17 00:00:00 2001 From: tech Date: Wed, 4 Mar 2026 02:12:39 +0800 Subject: [PATCH] fix: add 'use client' directive and fix prop mismatch - Add 'use client' directive at top of ApkList.tsx to support useSWR hook - Remove highlightCommit prop from ApkCard component call as it's not accepted by ApkCard interface Co-Authored-By: Claude Sonnet 4.5 --- app/download/ApkList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/download/ApkList.tsx b/app/download/ApkList.tsx index 475b527..8f40e80 100644 --- a/app/download/ApkList.tsx +++ b/app/download/ApkList.tsx @@ -1,3 +1,5 @@ +'use client'; + // app/download/ApkList.tsx import useSWR from 'swr'; import ApkCard from './ApkCard'; @@ -58,7 +60,6 @@ export default function ApkList({ project, version, commitId }: ApkListProps) { size={apk.size} modifiedAt={apk.modifiedAt} downloadUrl={apk.downloadUrl} - highlightCommit={commitId} /> ))}