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

[Wv-581] implement learn more modal challenge invite friends #4092

Conversation

itcreativeusa
Copy link
Contributor

@itcreativeusa itcreativeusa commented Oct 7, 2024

  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.

                *************************IMPORTANT*****************************
    

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.
223
Screenshot 2024-10-07 at 1 17 42 PM

@itcreativeusa
Copy link
Contributor Author

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

created BoostLearnMoreModal.jsx  and added here src/js/common/components/ChallengeInviteFriends/BoostLearnMoreModal.jsx
@itcreativeusa itcreativeusa force-pushed the wv-581-implement-learn-more-modal-challenge-invite-friends branch from 2395be4 to 5b88ce3 Compare October 8, 2024 23:37
itcreativeusa and others added 4 commits October 9, 2024 12:01
… changes based on meeting discussion

- Following the meeting, made changes to the modal section as discussed.
- Removed the unused PayToPromoteProcess import.
- Uncommented the modal-related code to restore functionality.
@DaleMcGrew
Copy link
Member

👍

@DaleMcGrew DaleMcGrew merged commit b08f8f1 into wevote:develop Oct 10, 2024
4 checks passed
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