From 90186f6c20ef198c1d504c4548d669323e710671 Mon Sep 17 00:00:00 2001 From: Jeremy Myers Date: Thu, 14 Sep 2023 12:21:16 -0400 Subject: [PATCH] Rename marker icons to differentiate from marker components --- .../eda/src/lib/map/analysis/MapAnalysis.tsx | 30 +++++++++---------- ...arPlotMarker.tsx => BarPlotMarkerIcon.tsx} | 2 +- ...PlotMarkers.tsx => BarPlotMarkersIcon.tsx} | 2 +- ...{BubbleMarker.tsx => BubbleMarkerIcon.tsx} | 2 +- .../{DonutMarker.tsx => DonutMarkerIcon.tsx} | 2 +- ...{DonutMarkers.tsx => DonutMarkersIcon.tsx} | 2 +- .../MarkerConfiguration/icons/index.ts | 20 ++++++------- 7 files changed, 30 insertions(+), 30 deletions(-) rename packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/{BarPlotMarker.tsx => BarPlotMarkerIcon.tsx} (96%) rename packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/{BarPlotMarkers.tsx => BarPlotMarkersIcon.tsx} (96%) rename packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/{BubbleMarker.tsx => BubbleMarkerIcon.tsx} (92%) rename packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/{DonutMarker.tsx => DonutMarkerIcon.tsx} (97%) rename packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/{DonutMarkers.tsx => DonutMarkersIcon.tsx} (95%) diff --git a/packages/libs/eda/src/lib/map/analysis/MapAnalysis.tsx b/packages/libs/eda/src/lib/map/analysis/MapAnalysis.tsx index bc6c2642ca..4e3facafad 100755 --- a/packages/libs/eda/src/lib/map/analysis/MapAnalysis.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MapAnalysis.tsx @@ -80,9 +80,9 @@ import { BubbleMarkerConfigurationMenu, } from './MarkerConfiguration'; import { - BarPlotMarker, - DonutMarker, - BubbleMarker, + BarPlotMarkerIcon, + DonutMarkerIcon, + BubbleMarkerIcon, } from './MarkerConfiguration/icons'; import { leastAncestralEntity } from '../../core/utils/data-element-constraints'; import { getDefaultOverlayConfig } from './utils/defaultOverlayConfig'; @@ -97,14 +97,14 @@ import { DraggablePanel } from '@veupathdb/coreui/lib/components/containers'; import { TabbedDisplayProps } from '@veupathdb/coreui/lib/components/grids/TabbedDisplay'; import { GeoConfig } from '../../core/types/geoConfig'; import Banner from '@veupathdb/coreui/lib/components/banners/Banner'; -import BubbleMarkerComponent, { +import BubbleMarker, { BubbleMarkerProps, } from '@veupathdb/components/lib/map/BubbleMarker'; -import DonutMarkerComponent, { +import DonutMarker, { DonutMarkerProps, DonutMarkerStandalone, } from '@veupathdb/components/lib/map/DonutMarker'; -import ChartMarkerComponent, { +import ChartMarker, { ChartMarkerProps, ChartMarkerStandalone, } from '@veupathdb/components/lib/map/ChartMarker'; @@ -592,11 +592,11 @@ function MapAnalysisImpl(props: ImplProps) { () => markersData?.map((markerProps) => markerType === 'pie' ? ( - + ) : markerType === 'bubble' ? ( - + ) : ( - + ) ) || [], [markersData, markerType] @@ -735,7 +735,7 @@ function MapAnalysisImpl(props: ImplProps) { // concatenating the parent and subMenu labels creates a unique ID id: MapSideNavItemLabels.ConfigureMap + MarkerTypeLabels.pie, labelText: MarkerTypeLabels.pie, - icon: , + icon: , onClick: () => setActiveMarkerConfigurationType('pie'), isActive: activeMarkerConfigurationType === 'pie', }, @@ -743,7 +743,7 @@ function MapAnalysisImpl(props: ImplProps) { // concatenating the parent and subMenu labels creates a unique ID id: MapSideNavItemLabels.ConfigureMap + MarkerTypeLabels.barplot, labelText: MarkerTypeLabels.barplot, - icon: , + icon: , onClick: () => setActiveMarkerConfigurationType('barplot'), isActive: activeMarkerConfigurationType === 'barplot', }, @@ -751,7 +751,7 @@ function MapAnalysisImpl(props: ImplProps) { // concatenating the parent and subMenu labels creates a unique ID id: MapSideNavItemLabels.ConfigureMap + MarkerTypeLabels.bubble, labelText: MarkerTypeLabels.bubble, - icon: , + icon: , onClick: () => setActiveMarkerConfigurationType('bubble'), isActive: activeMarkerConfigurationType === 'bubble', }, @@ -768,7 +768,7 @@ function MapAnalysisImpl(props: ImplProps) { type: 'pie', displayName: MarkerTypeLabels.pie, icon: ( - ), @@ -807,7 +807,7 @@ function MapAnalysisImpl(props: ImplProps) { type: 'barplot', displayName: MarkerTypeLabels.barplot, icon: ( - ), @@ -846,7 +846,7 @@ function MapAnalysisImpl(props: ImplProps) { type: 'bubble', displayName: MarkerTypeLabels.bubble, icon: ( - ), diff --git a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarker.tsx b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarkerIcon.tsx similarity index 96% rename from packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarker.tsx rename to packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarkerIcon.tsx index ad424f5f01..1a68c11db9 100644 --- a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarker.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/icons/BarPlotMarkerIcon.tsx @@ -1,5 +1,5 @@ import { SVGProps } from 'react'; -export function BarPlotMarker(props: SVGProps) { +export function BarPlotMarkerIcon(props: SVGProps) { return ( ) { +export function BarPlotMarkersIcon(props: SVGProps) { return ( ) { +export function BubbleMarkerIcon(props: SVGProps) { return ( // ) { +export function DonutMarkerIcon(props: SVGProps) { return ( ) { +export function DonutMarkersIcon(props: SVGProps) { return (