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 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 02:12:39 +08:00
parent 608d67c7fd
commit 993ce520f0

View File

@@ -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}
/>
))}
</div>