From 29efb1905652e0ed2236b2b37754b0b246c72948 Mon Sep 17 00:00:00 2001 From: nishupr Date: Wed, 8 Jul 2026 13:03:19 +0530 Subject: [PATCH] refactor: centralize auth-gate strings into src/lib/constants.ts (#750) --- src/app/community/page.tsx | 3 ++- src/app/community/view/client.tsx | 5 ++-- src/app/opensource/page.tsx | 3 ++- src/app/u/client.tsx | 3 ++- src/components/profile/FollowButton.tsx | 3 ++- src/components/profile/UserProfile.tsx | 3 ++- src/components/projects/ProjectCard.tsx | 3 ++- .../resources/InternshipCalendarModal.tsx | 3 ++- src/lib/constants.ts | 24 +++++++++++++++++++ 9 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 src/lib/constants.ts diff --git a/src/app/community/page.tsx b/src/app/community/page.tsx index db3b06d7..23788722 100644 --- a/src/app/community/page.tsx +++ b/src/app/community/page.tsx @@ -1,5 +1,6 @@ 'use client'; +import { AUTH_MESSAGES } from '@/lib/constants'; import Fuse from 'fuse.js'; import ReviewsSection from './ReviewsSection'; import { useState, useEffect, useMemo } from 'react'; @@ -137,7 +138,7 @@ export default function CommunityPage() {