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

feat: add Donation Modal as menu item #833

Merged
merged 3 commits into from
Jul 27, 2024

Conversation

xoRmalka
Copy link
Member

Solution for #422

Description

  • Added a Donation Modal that opens when the donation menu item is clicked.

  • Created a DonateModal component based on the existing DonationButton.

  • Updated MainMenu to include a conditional check for the donation menu item.

  • Used e.preventDefault() to prevent URL change when clicking the donation menu item.

  • Integrated the DonateModal into the MainMenu component.

  • Ensured that donation links in the modal open in a new tab.

screenshots

image

- Added a Donation Modal that opens when the donation menu item is clicked.

- Created a `DonateModal` component based on the existing `DonationButton`.

- Updated `MainMenu` to include a conditional check for the donation menu item.

- Used `e.preventDefault()` to prevent URL change when the donation menu item is clicked.

- Integrated the `DonateModal` into the `MainMenu` component.
Copy link
Contributor

github-actions bot commented Jun 22, 2024

Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

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

That's great! Thank you 🥳

Copy link
Member

Choose a reason for hiding this comment

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

Can we make the donation button use the same donation modal component?
Let's avoid code duplication where it's possible

@xoRmalka xoRmalka merged commit ef02293 into hasadna:main Jul 27, 2024
12 checks passed
@xoRmalka xoRmalka deleted the donations-modal branch July 27, 2024 17:12
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.

2 participants