From 6d389fc80a62ce8d3da4645c8fb605d6825a1871 Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Wed, 10 Jul 2024 10:01:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20do=20not=20use=20key=20as=20a=20?= =?UTF-8?q?react=20prop=20(#3783)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grapher/src/barCharts/DiscreteBarChart.tsx | 2 +- packages/@ourworldindata/grapher/src/halo/Halo.tsx | 4 ++-- .../grapher/src/noDataModal/NoDataModal.tsx | 4 ++-- .../grapher/src/scatterCharts/ComparisonLine.tsx | 2 +- .../src/scatterCharts/ScatterPointsWithLabels.tsx | 10 ++++++++-- .../grapher/src/scatterCharts/ScatterSizeLegend.tsx | 2 +- .../src/stackedCharts/StackedDiscreteBarChart.tsx | 2 +- 7 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/barCharts/DiscreteBarChart.tsx b/packages/@ourworldindata/grapher/src/barCharts/DiscreteBarChart.tsx index 85fadd3898b..7508e1839a2 100644 --- a/packages/@ourworldindata/grapher/src/barCharts/DiscreteBarChart.tsx +++ b/packages/@ourworldindata/grapher/src/barCharts/DiscreteBarChart.tsx @@ -530,7 +530,7 @@ export class DiscreteBarChart opacity={GRAPHER_AREA_OPACITY_DEFAULT} style={{ transition: "height 200ms ease" }} /> - + + {halo} {props.children} diff --git a/packages/@ourworldindata/grapher/src/noDataModal/NoDataModal.tsx b/packages/@ourworldindata/grapher/src/noDataModal/NoDataModal.tsx index d41989cbe1b..8502da6e0fe 100644 --- a/packages/@ourworldindata/grapher/src/noDataModal/NoDataModal.tsx +++ b/packages/@ourworldindata/grapher/src/noDataModal/NoDataModal.tsx @@ -69,7 +69,7 @@ export class NoDataModal extends React.Component<{ - + {showHelpText && ( - + - + !label.isHidden) .map((label) => ( - + !label.isHidden) .map((label, index) => ( - + - + ))} {this.showTotalValueLabel && ( - +