From 91e75a2c72c46a2cdc85a8836128311b57f4c202 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 2 Oct 2021 17:42:43 +0200 Subject: [PATCH] table tr for head --- src/components/Table.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Table.tsx b/src/components/Table.tsx index f954116..756600f 100644 --- a/src/components/Table.tsx +++ b/src/components/Table.tsx @@ -32,7 +32,9 @@ const Table: React.FC = ({data:{headers,body}}) => { return ( - {headers.map((e,i)=>)} + + {headers.map((e,i)=>)} + {body.map((row,rowIndex)=>
{e.name}
{e.name}