We Vote's javascript (client-side) mobile website built with React/Flux. Twitter: @WeVote Apple Store: https://itunes.apple.com/us/app/we-vote-voter-guide/id1347335726 Android: https://play.google.com/store/apps/details?id=org.wevote.cordova&hl=en_US
94
stars
301
forks
source link
[Wv-581] implement learn more modal challenge invite friends #4092
1) Created a new component BoostLearnMoreModal.jsx from HelpWinOrDefeatModal.jsx.
Added import to ChallengeInviteSteps.jsx
2) ChallengeInviteSteps.jsx
Render BoostLearnMoreModal component within a Suspense wrapper to optimize loading
Added conditional rendering for BoostLearnMoreModal, ensuring it only shows when the showBoostLearnMoreModal state is true.
-Added the toggleBoostLearnMoreModal function to manage modal visibility by toggling showBoostLearnMoreModal state.
Added an onClick handler to trigger the modal visibility toggle when needed.
The original modal was not working to me - the modal remained constantly loaded.
After reviewing, I simplified the code by commenting a few lines and using basic divs. Now, the modal works, though there could be other underlying issues in the original code.
Here screenshots about it.
I also just notices that constant loading was caused by this line : textFieldJSX={textFieldJSX}, in file BoostLearnMoreModal.jsx I commented it, But can remove what I commented
1) Created a new component BoostLearnMoreModal.jsx from HelpWinOrDefeatModal.jsx. Added import to ChallengeInviteSteps.jsx
2) ChallengeInviteSteps.jsx
Added an onClick handler to trigger the modal visibility toggle when needed.
The original modal was not working to me - the modal remained constantly loaded. After reviewing, I simplified the code by commenting a few lines and using basic divs. Now, the modal works, though there could be other underlying issues in the original code. Here screenshots about it.