-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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) => |
There was a problem hiding this comment.
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?
This is debt related to #285 and to this conversation.