fix row colour rendering
This commit is contained in:
@@ -58,7 +58,7 @@ const Schedule = ({ data }) => {
|
||||
{data?.length > 0 &&
|
||||
data.map((row, i) => {
|
||||
return (
|
||||
<ScheduleRow bg={i % 2 === 1} key={row.id}>
|
||||
<ScheduleRow bg={i % 2 === 1} key={`${row.id}-${i}`}>
|
||||
<ScheduleCell width={widths[0]}>{row.name}</ScheduleCell>
|
||||
<ScheduleCell width={widths[1]}>{row.date}</ScheduleCell>
|
||||
<ScheduleCell width={widths[2]}>{row.startTime}</ScheduleCell>
|
||||
|
||||
Reference in New Issue
Block a user