Skip to content

Commit

Permalink
fix: key is not passed to child
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Feb 1, 2025
1 parent 70e2a8b commit c6e20d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Tr.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function Tr({children, className, key}:{ children: React.ReactNode, className?: string, key?: any }) {
return <tr key={key} className={"border-0 odd:bg-white odd:dark:bg-gray-900 even:bg-gray-100 even:dark:bg-gray-800 border-b dark:border-gray-700 " + className}>
export default function Tr({children, className}:{ children: React.ReactNode, className?: string, key?: any }) {
return <tr className={"border-0 odd:bg-white odd:dark:bg-gray-900 even:bg-gray-100 even:dark:bg-gray-800 border-b dark:border-gray-700 " + className}>
{children}
</tr>
}

0 comments on commit c6e20d5

Please sign in to comment.