Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return markerProps from useStandaloneMapMarkers #292

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

jernestmyers
Copy link
Member

This is debt related to #285 and to this conversation.

Copy link
Member

@dmfalke dmfalke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Works great.

Copy link
Member

@bobular bobular left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LATM
(awesome)

@@ -85,6 +85,8 @@ import { DraggablePanel } from '@veupathdb/coreui/dist/components/containers';
import { TabbedDisplayProps } from '@veupathdb/coreui/dist/components/grids/TabbedDisplay';
import { GeoConfig } from '../../core/types/geoConfig';
import Banner from '@veupathdb/coreui/dist/components/banners/Banner';
import DonutMarkerComponent from '@veupathdb/components/lib/map/DonutMarker';
import ChartMarkerComponent from '@veupathdb/components/lib/map/ChartMarker';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interested in the motivation for the rename...

Oh, I see, because of the DonutMarker SVG Icon component.

This could be a general "style guide" discussion at our next meeting maybe.


const markers = useMemo(
() =>
markersData?.map((marker) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purely style but markerProps is more readable?

@jernestmyers jernestmyers changed the title Return markersData from useStandaloneMapMarkers Return markerProps from useStandaloneMapMarkers Jun 9, 2023
@jernestmyers jernestmyers merged commit 6d031fe into main Jun 9, 2023
1 check passed
@jernestmyers jernestmyers deleted the debt/refactor-useStandaloneMapMarkers branch June 9, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants