From f29f46f90c3178acfdf47c2cb58c901cf69d2f11 Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Tue, 10 Dec 2024 15:40:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20deduplicate=20import=20statement?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ourworldindata/grapher/src/lineLegend/LineLegend.tsx | 3 +-- .../grapher/src/scatterCharts/ScatterSizeLegend.tsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/lineLegend/LineLegend.tsx b/packages/@ourworldindata/grapher/src/lineLegend/LineLegend.tsx index 647e714666e..e845c46b474 100644 --- a/packages/@ourworldindata/grapher/src/lineLegend/LineLegend.tsx +++ b/packages/@ourworldindata/grapher/src/lineLegend/LineLegend.tsx @@ -14,7 +14,7 @@ import { last, maxBy, } from "@ourworldindata/utils" -import { TextWrap, TextWrapGroup } from "@ourworldindata/components" +import { TextWrap, TextWrapGroup, Halo } from "@ourworldindata/components" import { computed } from "mobx" import { observer } from "mobx-react" import { VerticalAxis } from "../axis/Axis" @@ -32,7 +32,6 @@ import { import { ChartSeries } from "../chart/ChartInterface" import { darkenColorForText } from "../color/ColorUtils" import { AxisConfig } from "../axis/AxisConfig.js" -import { Halo } from "@ourworldindata/components" // Minimum vertical space between two legend items const LEGEND_ITEM_MIN_SPACING = 4 diff --git a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterSizeLegend.tsx b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterSizeLegend.tsx index 935b1b8fe40..6d9d0ad8d6b 100644 --- a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterSizeLegend.tsx +++ b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterSizeLegend.tsx @@ -1,7 +1,7 @@ import React from "react" import { computed } from "mobx" import { scaleLinear, ScaleLinear } from "d3-scale" -import { TextWrap } from "@ourworldindata/components" +import { TextWrap, Halo } from "@ourworldindata/components" import { Color, first, @@ -18,7 +18,6 @@ import { GRAPHER_LIGHT_TEXT, } from "../core/GrapherConstants" import { CoreColumn } from "@ourworldindata/core-table" -import { Halo } from "@ourworldindata/components" import { ScatterSeries, SCATTER_POINT_MAX_RADIUS,