Fix missing key warnings in GanttChart component
This commit is contained in:
@@ -91,6 +91,7 @@ const GanttChart = ({
|
|||||||
{times((index) => {
|
{times((index) => {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
|
key={`day-border-${index}`}
|
||||||
sx={{
|
sx={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
height: totalRow * 50 + 40,
|
height: totalRow * 50 + 40,
|
||||||
@@ -107,6 +108,7 @@ const GanttChart = ({
|
|||||||
const weekNumber = index + 1
|
const weekNumber = index + 1
|
||||||
return (
|
return (
|
||||||
<Text
|
<Text
|
||||||
|
key={`week-start-date-${index}`}
|
||||||
sx={{
|
sx={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
color: 'gray.5',
|
color: 'gray.5',
|
||||||
|
|||||||
Reference in New Issue
Block a user