Fixed key props
This commit is contained in:
1 parent
f689b304c8
commit
25c08ad9a4
1 file changed
+2
-2
@@ -98,7 +98,7 @@ export const UpBarChart = ({ data, type, onBarHover }) => {
|
|||||||
let { main, light } = getColorRange(entry.uptimePercentage);
|
let { main, light } = getColorRange(entry.uptimePercentage);
|
||||||
return (
|
return (
|
||||||
<Cell
|
<Cell
|
||||||
key={`cell-${index}`}
|
key={`cell-${entry.time}`}
|
||||||
fill={
|
fill={
|
||||||
hoveredBarIndex === index ? main : chartHovered ? light : main
|
hoveredBarIndex === index ? main : chartHovered ? light : main
|
||||||
}
|
}
|
||||||
@@ -171,7 +171,7 @@ export const DownBarChart = ({ data, type, onBarHover }) => {
|
|||||||
>
|
>
|
||||||
{reversedData.map((entry, index) => (
|
{reversedData.map((entry, index) => (
|
||||||
<Cell
|
<Cell
|
||||||
key={`cell-${index}`}
|
key={`cell-${entry.time}`}
|
||||||
fill={
|
fill={
|
||||||
hoveredBarIndex === index
|
hoveredBarIndex === index
|
||||||
? theme.palette.error.text
|
? theme.palette.error.text
|
||||||
|
|||||||
Reference in new issue
Block a user