Closed ASHISH-JHA94 closed 6 months ago
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊
PLEASE CHECK EVERYTHING BEFORE MERGING ANY OTHER PULL REQUEST.
Description
Authentication Context Enhancement: Modified the AuthContext to use useEffect for maintaining the user's login state across page refreshes by checking the token from localStorage.
Logout Functionality: Implemented a standard approach to logging out the user, ensuring the token is properly removed from localStorage and the user state is updated.
Conditional Rendering in Navbar: Added conditional rendering in the Navbar to show different options based on whether the user is logged in or not. This includes a Profile component that appears when the user is logged in.
Responsive Design: Ensured that the Navbar properly adjusts for mobile and desktop views, including showing login/logout options appropriately in both modes.
update the file structure and remove redundancy.
Added home page ui and things can be improved
created one ToastContext
fixing the bad routing implementation
Fixes: #(issue no.)
fixes: #134
Checklist:
[ x] I have made this from my own
[ x] I have taken help from some online resourses
[x ] My code follows the style guidelines of this project
[ x] I have performed a self-review of my own code
[x ] I have commented my code, particularly in hard-to-understand areas
[ x] My changes generate no new warnings
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
https://github.com/Trisha-tech/OnlineBookSales/assets/136432304/acb0e2d8-a663-4fbe-b1c2-7c6ca00f055e