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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user