From e50cc59f0d9ed74579fe1eb83c04ade61f235dd5 Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Thu, 4 Feb 2021 16:18:15 -0800 Subject: [PATCH] refactor(web): datatables --- web/src/Events.jsx | 2 +- web/src/components/Card.jsx | 4 +++- web/src/components/Table.jsx | 14 ++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/web/src/Events.jsx b/web/src/Events.jsx index 35000cc75..90c886824 100644 --- a/web/src/Events.jsx +++ b/web/src/Events.jsx @@ -141,7 +141,7 @@ export default function Events({ path: pathname } = {}) { const end = new Date(parseInt(endTime * 1000, 10)); const ref = i === events.length - 1 ? lastCellRef : undefined; return ( - + diff --git a/web/src/components/Table.jsx b/web/src/components/Table.jsx index f41489709..b1407c8df 100644 --- a/web/src/components/Table.jsx +++ b/web/src/components/Table.jsx @@ -18,13 +18,19 @@ export function Tfoot({ children, className = '' }) { return {children}; } -export function Tr({ children, className = '', index }) { - return {children}; +export function Tr({ children, className = '' }) { + return ( + + {children} + + ); } export function Th({ children, className = '', colspan }) { return ( - + {children} ); @@ -32,7 +38,7 @@ export function Th({ children, className = '', colspan }) { export function Td({ children, className = '', colspan }) { return ( - + {children} );