|
@@ -18,13 +18,19 @@ export function Tfoot({ children, className = '' }) {
|
|
return <tfoot className={`${className}`}>{children}</tfoot>;
|
|
return <tfoot className={`${className}`}>{children}</tfoot>;
|
|
}
|
|
}
|
|
|
|
|
|
-export function Tr({ children, className = '', index }) {
|
|
|
|
- return <tr className={`${index % 2 ? 'bg-gray-200 dark:bg-gray-600' : ''} ${className}`}>{children}</tr>;
|
|
|
|
|
|
+export function Tr({ children, className = '' }) {
|
|
|
|
+ return (
|
|
|
|
+ <tr
|
|
|
|
+ className={`border-b border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 ${className}`}
|
|
|
|
+ >
|
|
|
|
+ {children}
|
|
|
|
+ </tr>
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
export function Th({ children, className = '', colspan }) {
|
|
export function Th({ children, className = '', colspan }) {
|
|
return (
|
|
return (
|
|
- <th className={`border-b-2 border-gray-400 p-1 md:p-2 text-left ${className}`} colspan={colspan}>
|
|
|
|
|
|
+ <th className={`border-b border-gray-400 p-2 px-1 lg:p-4 text-left ${className}`} colspan={colspan}>
|
|
{children}
|
|
{children}
|
|
</th>
|
|
</th>
|
|
);
|
|
);
|
|
@@ -32,7 +38,7 @@ export function Th({ children, className = '', colspan }) {
|
|
|
|
|
|
export function Td({ children, className = '', colspan }) {
|
|
export function Td({ children, className = '', colspan }) {
|
|
return (
|
|
return (
|
|
- <td className={`p-1 md:p-2 ${className}`} colspan={colspan}>
|
|
|
|
|
|
+ <td className={`p-2 px-1 lg:p-4 ${className}`} colspan={colspan}>
|
|
{children}
|
|
{children}
|
|
</td>
|
|
</td>
|
|
);
|
|
);
|