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

SVG path click #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

SVG path click #1

wants to merge 3 commits into from

Conversation

Yakup3
Copy link

@Yakup3 Yakup3 commented Sep 2, 2024

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.

@Yakup3 Yakup3 closed this Sep 2, 2024
@Yakup3 Yakup3 reopened this Sep 2, 2024
@Yakup3 Yakup3 changed the title On click city SVG path click Sep 2, 2024
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.

1 participant