-
-
Notifications
You must be signed in to change notification settings - Fork 434
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
Conversation
…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
There was a problem hiding this 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 🚀
This PR is fine, you can delete the other one or vice - versa |
There was a problem hiding this 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 ?
This pull request has been deployed to Vercel.
|
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