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

Resource Page #119

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Resource Page #119

merged 1 commit into from
Mar 11, 2024

Conversation

nickbar01234
Copy link
Collaborator

Description

Add resource page to User and Chapter Leader View

Screenshots

Chapter leader view

image

User view

image

Copy link

vercel bot commented Mar 11, 2024

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

Name Status Preview Updated (UTC)
the-legacy-project2 ✅ Ready (Inspect) Visit Preview Mar 11, 2024 1:39am

@@ -21,7 +21,7 @@ const TabButtons = ({ queries }: TabButtonsProps) => {
<div className="flex gap-6">
{queries.map(({ segment, name }, index) => {
const isTabSelected =
pathName.includes(segment) || (urlSegment === null && index === 0);
pathName.endsWith(segment) || (urlSegment === null && index === 0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This simplifies our logic. If we use include, we have to account for overlaps.

@cledi01 cledi01 self-requested a review March 11, 2024 17:54
@cledi01
Copy link
Collaborator

cledi01 commented Mar 11, 2024

LGTM!

Copy link
Collaborator

@cledi01 cledi01 left a comment

Choose a reason for hiding this comment

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

LGTM! Verified functionality on my own local machine too.

@nickbar01234 nickbar01234 merged commit 18f2e39 into main Mar 11, 2024
4 checks passed
@nickbar01234 nickbar01234 deleted the nickbar01234/resource-page branch March 11, 2024 17:59
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