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

Feat: Add AdminProtected Route #62

Closed
wants to merge 2 commits into from

Conversation

parthksingh1
Copy link
Contributor

@parthksingh1 parthksingh1 commented Jul 5, 2023

  1. This PR fixes or fixes part of Create a AdminProtectedRoute component #50
  2. This PR does the following: It adds AdminProtectedRoute to admin Dashboard which redirect the user to homePage when the user is not admin.

Essential Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • "Allow edits from maintainers" is checked. (See here for instructions on how to enable it.)
  • The PR is made from a branch that's not called "main/master".


<Route
path="/"
element={
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this test code.

@Bhavik-ag
Copy link
Collaborator

@parthksingh1 Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a AdminPageLayout component for admin pages.
4 participants