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

collapsible items in univ home page and chapter requests #145

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

tylerrlin
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Apr 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
the-legacy-project2 🔄 Building (Inspect) Visit Preview Apr 7, 2024 6:15pm

Copy link
Collaborator

@johnny-t06 johnny-t06 left a comment

Choose a reason for hiding this comment

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

LGTM, the transitions look super nice! Tested resources, members, chapter info, and pending requests. Good job team!

tiles={userRequests.map((user, index) => {
return (
<PendingCard
key={index}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nickbar01234 is it more safe to use user.uid as the key? I've had some problems when using the index for the key.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, I agree. In general, it's safer to not use index, as items in a list can be shifted / re-ordered. I think in this case, it's fine, because userRequests are passed from the server, and we refresh the page every time. You can find more details here

Copy link
Collaborator

@nickbar01234 nickbar01234 left a comment

Choose a reason for hiding this comment

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

Changes are fantastic, thank you! After you guys fix the merge conflict, feel free to merge whenever.

tiles={userRequests.map((user, index) => {
return (
<PendingCard
key={index}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, I agree. In general, it's safer to not use index, as items in a list can be shifted / re-ordered. I think in this case, it's fine, because userRequests are passed from the server, and we refresh the page every time. You can find more details here

@nickbar01234 nickbar01234 force-pushed the tyler/julia/collapse branch from 6ae1bd5 to baa2c1b Compare April 9, 2024 19:35
@nickbar01234
Copy link
Collaborator

Merging ahead for our sponsor meeting!

@nickbar01234 nickbar01234 merged commit 8ab1f3e into main Apr 9, 2024
3 of 4 checks passed
@nickbar01234 nickbar01234 deleted the tyler/julia/collapse branch April 9, 2024 19:36
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.

3 participants