Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaaydenh merged 1 commit intomainfromjaaydenh/org-members-page-view
Feb 12, 2025

Conversation

jaaydenh
Copy link
Contributor

  • migrate styles to tailwind
  • migrate to new Table component

@jaaydenhjaaydenh self-assigned thisFeb 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 thePitfall note in theReact 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!

jaaydenh reacted with thumbs up emoji
Copy link
ContributorAuthor

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.

@jaaydenhjaaydenh merged commitea1358c intomainFeb 12, 2025
32 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/org-members-page-view branchFebruary 12, 2025 19:59
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 12, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@brettkolodnybrettkolodnybrettkolodny approved these changes

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jaaydenh@brettkolodny

[8]ページ先頭

©2009-2025 Movatter.jp