Closed xoRmalka closed 3 months ago
Solution for #422
Added a Donation Modal that opens when the donation menu item is clicked.
Created a DonateModal component based on the existing DonationButton.
DonateModal
DonationButton
Updated MainMenu to include a conditional check for the donation menu item.
MainMenu
Used e.preventDefault() to prevent URL change when clicking the donation menu item.
e.preventDefault()
Integrated the DonateModal into the MainMenu component.
Ensured that donation links in the modal open in a new tab.
Preview: https://s3.amazonaws.com/noam-gaash.co.il/10125116641/open-bus/47/index.html Preview Storybook: https://s3.amazonaws.com/noam-gaash.co.il/10125116641/open-bus/47/storybook/index.html
Solution for #422
Description
Added a Donation Modal that opens when the donation menu item is clicked.
Created a
DonateModal
component based on the existingDonationButton
.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 theMainMenu
component.Ensured that donation links in the modal open in a new tab.
screenshots