Fix missing key warnings in GanttChart component

This commit is contained in:
Sakura Knoll
2022-01-03 13:20:27 +09:00 Unverified
parent f1bbab1114
commit d6a8a0e7b0
+2
View File
@@ -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',