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 support for listing users #221

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

tylerslaton
Copy link
Contributor

I'll be adding a follow-up PR that will add in a delete operation for users that an admin can perform.

Screenshot 2024-10-17 at 11 09 04 AM

interface UserMenuProps {
className?: string;
}

export const UserMenu: React.FC<UserMenuProps> = ({ className }) => {
const { me } = useAuth();

if (me.username === "nobody") {
if (me.username === AuthDisabledUsername) {
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of doing this, can we return an isLoggedIn from useAuth?

@tylerslaton tylerslaton merged commit 905d667 into obot-platform:main Oct 17, 2024
1 check passed
@tylerslaton tylerslaton deleted the list-users branch October 17, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants