mirror of
https://github.com/ozgrozer/react-turkey-map.git
synced 2026-04-25 07:05:48 +03:00
[PR #1] SVG path click #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/react-turkey-map#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ozgrozer/react-turkey-map/pull/1
Author: @Yakup3
Created: 9/2/2024
Status: 🔄 Open
Base:
main← Head:Feature/OnClickCity📝 Commits (3)
ace28c2formatted TurkeyMap component66c2158formatted componentsee1433dadded onClick city instead of consoling📊 Changes
4 files changed (+87 additions, -84 deletions)
View changed files
📝
example/MapComponent.jsx(+5 -4)📝
example/index.jsx(+16 -15)📝
package-lock.json(+2 -2)📝
src/TurkeyMap.jsx(+64 -63)📄 Description
Pull Request Description
Summary:
onClickProp to the component, which providescityandplatevalues when an SVG path is clicked.Details:
onClickprop is now triggered with thecityandplateattributes from the clicked element.console.logfunctionality with a more flexibleonClickcallback.Relevant Commit:
onClickprop and its functionality.onClickprop.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.