Closed Om-Thorat closed 4 weeks ago
@Om-Thorat is attempting to deploy a commit to the Busify Team on Vercel.
A member of the Team first needs to authorize it.
@Om-Thorat Nice work! so far the code looks clean to me.
About the footer and navbar, you can use the useLocation
hook to conditionally render the already available navbar & footer on the basis of route(use /adminpanel/component_name
route). This will allow you to incorporate different navbar for the admin pages.
Screenshots according to new commit.
@Om-Thorat I can still see the manage buses button
on the top right corner in the Navbar when navigating to the admin page as an "Admin" role but your screenshot indicates otherwise.
I think you have not set the conditional rendering on the manage buses button
since I can't see any changes made in that specific block of code.
Also, instead of adding new screenshots in the comments, please update the existing ones in the PR description itself.
@Om-Thorat I can still see the
manage buses button
on the top right corner in the Navbar when navigating to the admin page as an "Admin" role but your screenshot indicates otherwise.
Might have been overlooked because of not having an admin role, will fix.
@Pratik2026 Pushed a commit Implementing the suggestion. The screenshots remain the same. PTAL
@Om-Thorat LGTM.
merged, thanks for contributing @Om-Thorat
Overview
Essential Checklist
Proof that changes are correct
PR Pointers