From c3515e1662c4d5ed87a5dcfd98205313dbf87cb6 Mon Sep 17 00:00:00 2001 From: davidyoum Date: Fri, 4 Apr 2025 20:38:10 -0400 Subject: [PATCH 1/2] ran npx @next/coddemod new-link . and fixed the legacy behavior in StandardNav to fix settings page link bug --- src/components/AuthPopup.jsx | 2 +- src/components/Button.jsx | 2 +- src/components/Footer.jsx | 281 +++++++++--------- src/components/Header.jsx | 2 +- src/components/StandardNav.jsx | 46 ++- .../challenge/ChallengeComponent.jsx | 2 +- src/components/dashboard/DashboardHeader.jsx | 2 +- src/components/dashboard/FriendCard.jsx | 43 ++- .../dashboard/FriendRequestCard.jsx | 2 +- src/components/dashboard/Suggest.jsx | 3 +- src/components/groups/studentView.jsx | 4 +- src/components/home/Hero.jsx | 12 +- src/components/practice/community.jsx | 10 +- src/components/profile/ChallengeCard.jsx | 90 +++--- src/components/settingComponents/sidebar.jsx | 36 ++- src/components/social/FriendCard.jsx | 2 +- src/pages/challenges/[...id].jsx | 22 +- src/pages/create.jsx | 12 +- src/pages/create/earnings.jsx | 4 +- src/pages/create/settings.jsx | 8 +- src/pages/education.jsx | 11 +- src/pages/explorers.jsx | 264 ++++++++-------- src/pages/groups.jsx | 7 +- src/pages/groups/[group]/home.jsx | 4 +- src/pages/groups/[group]/settings.jsx | 67 ++--- src/pages/login.jsx | 3 +- src/pages/register.jsx | 2 +- src/pages/terminal.jsx | 22 +- 28 files changed, 479 insertions(+), 486 deletions(-) diff --git a/src/components/AuthPopup.jsx b/src/components/AuthPopup.jsx index 9ca1c2a7..b7d4fff2 100644 --- a/src/components/AuthPopup.jsx +++ b/src/components/AuthPopup.jsx @@ -11,7 +11,7 @@ export function AuthPopup() { // User logged out return (
- +

Log in to see your progress! diff --git a/src/components/Button.jsx b/src/components/Button.jsx index 96632aff..f41559af 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -38,7 +38,7 @@ export function Button({ ); return href ? ( - + ) : (

- +
+ href="/learn/modules" + className={ + linkClass('/learn/modules') + ' hidden lg:inline-flex' + } + > +
Learn - New! - +
+ + legacyBehavior>
@@ -402,7 +402,7 @@ export function StandardNav({ guestAllowed, alignCenter = true }) { + legacyBehavior>
@@ -587,7 +587,7 @@ export function StandardNav({ guestAllowed, alignCenter = true }) { className={classNames( 'flex w-full px-4 py-3 text-neutral-50 hover:bg-neutral-700' )} - > + legacyBehavior>