Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: update table component and styles #16541

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

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

jaaydenh
Copy link
Contributor

  • migrate styles to tailwind
  • migrate to new Table component

@jaaydenh jaaydenh self-assigned this Feb 12, 2025
/>
<UserGroupsCell userGroups={member.groups} />
<TableCell>
{member.user_id !== me.id && canEditMembers && (
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I personally try to avoid conditional rendering with && and instead will use a ternary. The reason being that I've been burned one too many times by the issue described in the Pitfall note in the React docs.

But I see && used a lot within the code base, and this case doesn't fall into the issue so just wanted to bring it up just in case!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya you will notice this this pattern everywhere the component is used. I think right now ternaries only get used if there is something to return in both the true and false case.

@jaaydenh jaaydenh merged commit ea1358c into main Feb 12, 2025
32 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/org-members-page-view branch February 12, 2025 19:59
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants