diff --git a/frontend/__tests__/unit/components/CardDetailsPage.test.tsx b/frontend/__tests__/unit/components/CardDetailsPage.test.tsx index 4eaecf58fe..2692f9072a 100644 --- a/frontend/__tests__/unit/components/CardDetailsPage.test.tsx +++ b/frontend/__tests__/unit/components/CardDetailsPage.test.tsx @@ -405,20 +405,20 @@ jest.mock('components/ContributorsList', () => ({ maxInitialDisplay, // eslint-disable-next-line @typescript-eslint/no-unused-vars icon, - label = 'Contributors', + title = 'Contributors', // eslint-disable-next-line @typescript-eslint/no-unused-vars getUrl, ...props }: { contributors: unknown[] icon?: unknown - label?: string + title?: string maxInitialDisplay: number getUrl: (login: string) => string [key: string]: unknown }) => (
- {label} ({contributors.length} items, max display: {maxInitialDisplay}) + {title} ({contributors.length} items, max display: {maxInitialDisplay})
), })) diff --git a/frontend/__tests__/unit/components/ContributorsList.test.tsx b/frontend/__tests__/unit/components/ContributorsList.test.tsx index 5e8a3185dc..b6f7ab4b91 100644 --- a/frontend/__tests__/unit/components/ContributorsList.test.tsx +++ b/frontend/__tests__/unit/components/ContributorsList.test.tsx @@ -302,7 +302,7 @@ describe('ContributorsList Component', () => { describe('Prop-based behavior', () => { it('uses custom label when provided', () => { const customLabel = 'Featured Contributors' - render() + render() expect(screen.getByText(customLabel)).toBeInTheDocument() }) @@ -551,7 +551,7 @@ describe('ContributorsList Component', () => { }) it('renders title with proper structure', () => { - render() + render() expect(screen.getByTestId('anchor-title')).toBeInTheDocument() expect(screen.getByText('Custom Title')).toBeInTheDocument() diff --git a/frontend/__tests__/unit/components/Milestones.test.tsx b/frontend/__tests__/unit/components/Milestones.test.tsx index cc7a01bb99..3bfc7ccc60 100644 --- a/frontend/__tests__/unit/components/Milestones.test.tsx +++ b/frontend/__tests__/unit/components/Milestones.test.tsx @@ -25,8 +25,8 @@ jest.mock('utils/dateFormatter', () => { }) jest.mock('components/AnchorTitle', () => { - const MockAnchorTitle = ({ title, className }: { title: string; className?: string }) => { - return

{title}

+ const MockAnchorTitle = ({ title }: { title: string }) => { + return

{title}

} return { diff --git a/frontend/src/app/about/page.tsx b/frontend/src/app/about/page.tsx index 70201e81cc..ac6d1bc05d 100644 --- a/frontend/src/app/about/page.tsx +++ b/frontend/src/app/about/page.tsx @@ -144,7 +144,7 @@ const About = () => { diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index e2b995ed0c..859d1fb2b5 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -159,7 +159,7 @@ export default function Home() { icon={FaCalendarAlt} title={
- +
} className="overflow-hidden" @@ -220,7 +220,7 @@ export default function Home() { icon={FaMapMarkerAlt} title={
- +
} className="overflow-hidden" @@ -266,7 +266,7 @@ export default function Home() { icon={FaFolder} title={
- +
} className="overflow-hidden" @@ -309,7 +309,7 @@ export default function Home() {
- +
@@ -352,7 +352,7 @@ export default function Home() { icon={FaNewspaper} title={
- +
} className="overflow-hidden" diff --git a/frontend/src/components/AnchorTitle.tsx b/frontend/src/components/AnchorTitle.tsx index a03cd5f6a4..03aa8122ec 100644 --- a/frontend/src/components/AnchorTitle.tsx +++ b/frontend/src/components/AnchorTitle.tsx @@ -4,7 +4,6 @@ import { scrollToAnchor, scrollToAnchorWithHistory } from 'utils/scrollToAnchor' import slugify from 'utils/slugify' interface AnchorTitleProps { - className?: string title: string } diff --git a/frontend/src/components/CardDetailsPage.tsx b/frontend/src/components/CardDetailsPage.tsx index 80de0ad10f..4ecd666e49 100644 --- a/frontend/src/components/CardDetailsPage.tsx +++ b/frontend/src/components/CardDetailsPage.tsx @@ -337,7 +337,7 @@ const DetailsCard = ({ contributors={topContributors} icon={HiUserGroup} maxInitialDisplay={12} - label="Top Contributors" + title="Top Contributors" getUrl={getMemberUrl} /> )} @@ -346,7 +346,7 @@ const DetailsCard = ({ icon={HiUserGroup} contributors={admins} maxInitialDisplay={6} - label="Admins" + title="Admins" getUrl={getMemberUrl} /> )} @@ -355,7 +355,7 @@ const DetailsCard = ({ icon={HiUserGroup} contributors={mentors} maxInitialDisplay={6} - label="Mentors" + title="Mentors" getUrl={getMemberUrl} /> )} @@ -364,7 +364,7 @@ const DetailsCard = ({ icon={HiUserGroup} contributors={mentees} maxInitialDisplay={6} - label="Mentees" + title="Mentees" getUrl={(login) => getMenteeUrl(programKey || '', entityKey || '', login)} /> )} diff --git a/frontend/src/components/ContributorsList.tsx b/frontend/src/components/ContributorsList.tsx index ac2d9fa56e..ece26973b6 100644 --- a/frontend/src/components/ContributorsList.tsx +++ b/frontend/src/components/ContributorsList.tsx @@ -10,7 +10,7 @@ import ShowMoreButton from 'components/ShowMoreButton' interface ContributorsListProps { contributors: Contributor[] - label?: string + title?: string maxInitialDisplay?: number icon?: IconType getUrl: (login: string) => string @@ -18,7 +18,7 @@ interface ContributorsListProps { const ContributorsList = ({ contributors, - label = 'Contributors', + title: label = 'Contributors', maxInitialDisplay = 12, icon, getUrl, @@ -40,7 +40,7 @@ const ContributorsList = ({ icon={icon} title={
- +
} > diff --git a/frontend/src/components/Milestones.tsx b/frontend/src/components/Milestones.tsx index 24ba9feecc..5f68e82c6b 100644 --- a/frontend/src/components/Milestones.tsx +++ b/frontend/src/components/Milestones.tsx @@ -30,7 +30,7 @@ const Milestones: React.FC = ({ - +
} data={data} diff --git a/frontend/src/components/RecentIssues.tsx b/frontend/src/components/RecentIssues.tsx index 458b3ee4f9..173609a3d4 100644 --- a/frontend/src/components/RecentIssues.tsx +++ b/frontend/src/components/RecentIssues.tsx @@ -19,7 +19,7 @@ const RecentIssues: React.FC = ({ data, showAvatar = true }) - +
} data={data} diff --git a/frontend/src/components/RecentPullRequests.tsx b/frontend/src/components/RecentPullRequests.tsx index 701b2a6267..0932bd14cd 100644 --- a/frontend/src/components/RecentPullRequests.tsx +++ b/frontend/src/components/RecentPullRequests.tsx @@ -19,7 +19,7 @@ const RecentPullRequests: React.FC = ({ data, showAvata - + } data={data} diff --git a/frontend/src/components/RecentReleases.tsx b/frontend/src/components/RecentReleases.tsx index ae84320c94..d1c02d6aff 100644 --- a/frontend/src/components/RecentReleases.tsx +++ b/frontend/src/components/RecentReleases.tsx @@ -21,7 +21,7 @@ const RecentReleases: React.FC = ({ icon={FaTag} title={
- +
} >