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

Added admin dashboard link to UserMenu #628

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

Klotske
Copy link
Contributor

@Klotske Klotske commented Jan 11, 2023

Added link to /admin page to the UserMenu component.
Link is conditionally rendered depending on user role.

Preview

href: "/admin",
desc: "Admin Dashboard",
icon: FiShield,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will probably error on non-admin users.

can you move it out of the array and use push or unshift?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tested, was working without errors

Fixed in b568f12

@fozziethebeat
Copy link
Collaborator

Will let @AbdBarho merge after verifying this works

@AbdBarho AbdBarho merged commit bac70ce into LAION-AI:main Jan 12, 2023
@Klotske Klotske deleted the add-admin-link branch January 12, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants