[PR #1] SVG path click #1

Open
opened 2026-02-27 15:42:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ozgrozer/react-turkey-map/pull/1
Author: @Yakup3
Created: 9/2/2024
Status: 🔄 Open

Base: mainHead: Feature/OnClickCity


📝 Commits (3)

  • ace28c2 formatted TurkeyMap component
  • 66c2158 formatted components
  • ee1433d added 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:

  • Added onClick Prop to the component, which provides city and plate values when an SVG path is clicked.

Details:

  • When a user clicks on an SVG path, the onClick prop is now triggered with the city and plate attributes from the clicked element.
  • This replaces the previous console.log functionality with a more flexible onClick callback.

Relevant Commit:

  • The primary changes for this feature are in commit-link, which introduces the new onClick prop and its functionality.
  • For reference, some additional commits involve formatting updates. You can focus on the mentioned commit for the specific changes related to the onClick prop.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ozgrozer/react-turkey-map/pull/1 **Author:** [@Yakup3](https://github.com/Yakup3) **Created:** 9/2/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `Feature/OnClickCity` --- ### 📝 Commits (3) - [`ace28c2`](https://github.com/ozgrozer/react-turkey-map/commit/ace28c2eaf920fbd162ebd663d7e61c68221810d) formatted TurkeyMap component - [`66c2158`](https://github.com/ozgrozer/react-turkey-map/commit/66c21587f782509b72f9899ccca6d1979e46c88f) formatted components - [`ee1433d`](https://github.com/ozgrozer/react-turkey-map/commit/ee1433db85713e19baf7602ba57fa180fb70e141) added onClick city instead of consoling ### 📊 Changes **4 files changed** (+87 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `example/MapComponent.jsx` (+5 -4) 📝 `example/index.jsx` (+16 -15) 📝 `package-lock.json` (+2 -2) 📝 `src/TurkeyMap.jsx` (+64 -63) </details> ### 📄 Description ## Pull Request Description **Summary:** - **Added `onClick` Prop** to the component, which provides `city` and `plate` values when an SVG path is clicked. **Details:** - When a user clicks on an SVG path, the `onClick` prop is now triggered with the `city` and `plate` attributes from the clicked element. - This replaces the previous `console.log` functionality with a more flexible `onClick` callback. **Relevant Commit:** - The primary changes for this feature are in [commit-link](https://github.com/ozgrozer/react-turkey-map/pull/1/commits/ee1433db85713e19baf7602ba57fa180fb70e141), which introduces the new `onClick` prop and its functionality. - For reference, some additional commits involve formatting updates. You can focus on the mentioned commit for the specific changes related to the `onClick` prop. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/react-turkey-map#1
No description provided.