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

fix: hide 'signup' button displayed on events and shop pages for logged-in users #1222 #1223

Closed
wants to merge 7 commits into from

Conversation

ndmaratha
Copy link

feat: added you will be notified div when user is logged in ,to solve the issue accessed the redux state user isloggedin and conditionaly rendered ui

style: added style for above div in comingsoon.css

closes #1222

👷🏻 Changes made

just conditionaly rendered the ui using redux state

📸 Screenshots

you will be notified

…otification when accessing certain routes, such as `/events` and `/shop`, on the website. ### Solution To address this issue, I've modified the relevant components to utilize local storage for accessing the `isLoggedIn` status. Now, when a user is already logged in, the notification displayed on these routes appropriately reflects their authenticated status. ### Changes Made - Updated [ComponentName] to check the `isLoggedIn` status from local storage and adjust the notification accordingly. - Added conditional rendering logic to show different notifications based on the user's authentication status. - Updated tests to ensure the correct behavior of the modified components.
Currently, logged-in users are incorrectly shown a signup notification
when accessing certain routes, such as /events and /shop, on the website.

To address this issue, this commit modifies the relevant components to
utilize local storage for accessing the isLoggedIn status. Now, when a
user is already logged in, the notification displayed on these routes
appropriately reflects their authenticated status.

Changes Made:
- Updated relevant components to check the isLoggedIn status from local
  storage and adjust the notification accordingly.
- Added conditional rendering logic to show different notifications based
  on the user's authentication status.
- Updated tests to ensure the correct behavior of the modified components.
…ed-in users ngoworldcommunity#1222

feat: added you will be notified div when user is logged in

style: added style for above div in comingsoon.css
@github-actions github-actions bot added status: todo ⏳ This issue is yet to be seen by the maintainer of the project. 🐞 bug This is a patch, generally fixing some bugs. labels Feb 21, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello @ndmaratha, thank you for raising a pull request.

Currently, the pull request is marked as https://github.com/MilanCommunity/Milan/labels/status%3A%20todo%20%E2%8F%B3 so please wait until the maintainers/owner review it and provide you with feedback/suggestions to proceed further.

Feel free to reach out to Tamal on Twitter, or drop a mail at [email protected] if you think that this pull request is of critical priority.

Give us a ⭐ to show some support
Happy OpenSource 🚀

@tamalCodes tamalCodes changed the base branch from Nayan-Desai to main February 23, 2024 15:15
@tamalCodes
Copy link
Member

This PR is fine, you can delete the other one or vice - versa

Copy link
Member

@tamalCodes tamalCodes left a comment

Choose a reason for hiding this comment

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

The isLoggedIn field is not getting updated even when we log in - that might cause some bugs, can you add some fixes for the same ?

@tamalCodes tamalCodes added status: need changes 🚧 Changes have been requested for these PRs and removed status: todo ⏳ This issue is yet to be seen by the maintainer of the project. labels Mar 11, 2024
Copy link

This pull request has been deployed to Vercel.

Latest commit: 6345b57
✅ Preview: https://milan-hsfyh0pg0-iamtamal.vercel.app
🔍 Inspect: https://vercel.com/iamtamal/milan/3wMMQZwoVsBLSFJ5wvWN4E9XMYZf

View Workflow Logs

@tamalCodes tamalCodes closed this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug This is a patch, generally fixing some bugs. status: need changes 🚧 Changes have been requested for these PRs
Projects
Status: Merged/Discarded
Development

Successfully merging this pull request may close these issues.

Bug: 'SignUp' Button Displayed on Events and Shop Pages for Logged-in Users
2 participants