update active bg

This commit is contained in:
YasinShaikh123
2024-09-23 12:25:30 +05:30
parent 8546ca3247
commit 9dca99b1c1
4 changed files with 13 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ const DataTable = ({
<Thead backgroundColor="forestGreen.100">
<Tr>
{tableHeadRow.map((heading, index) => (
<Th
<Th
textAlign={
tableHeadRow.length - 1 === index || centered
? "center"
@@ -86,7 +86,7 @@ const DataTable = ({
: data?.map((item, index) => (
<Tr bg={index % 2 === 0 ? "" : "forestGreen.50"} key={index}>
{tableHeadRow.map((heading, i) => (
<Td
<Td
textAlign={
tableHeadRow?.length - 1 === i || centered
? "center"