diff --git a/playwright-tests/tests/home.page.spec.ts b/playwright-tests/tests/home.page.spec.ts
index a624bc1..a13bcee 100644
--- a/playwright-tests/tests/home.page.spec.ts
+++ b/playwright-tests/tests/home.page.spec.ts
@@ -89,9 +89,7 @@ test.describe('Validate Home Page', () => {
await basePage.clickElement(homePage.joinAsMentorBtn);
await basePage.verifyURL('/mentorship/mentor-registration');
- await basePage.verifyPageContainsText(
- 'Welcome to the MentorRegistrationPage',
- );
+ await basePage.verifyPageContainsText('WCC: Registration Form for Mentors');
});
test('HP-004: Volunteer section', async ({ homePage, basePage }) => {
diff --git a/src/__tests__/pages/MenteeRegistrationPage.test.tsx b/src/__tests__/pages/MenteeRegistrationPage.test.tsx
index c46e2af..afc33e9 100644
--- a/src/__tests__/pages/MenteeRegistrationPage.test.tsx
+++ b/src/__tests__/pages/MenteeRegistrationPage.test.tsx
@@ -19,7 +19,11 @@ jest.mock('next/link', () => {
});
jest.mock('next/router', () => ({
- useRouter: () => ({ push: jest.fn(), pathname: '/' }),
+ useRouter: () => ({
+ push: jest.fn(),
+ pathname: '/mentorship/mentee-registration',
+ query: {},
+ }),
}));
// Mutable flag so individual tests can override the registration state
diff --git a/src/components/BreadCrumbsDynamic.tsx b/src/components/BreadCrumbsDynamic.tsx
index b79ad49..c0ca4cb 100644
--- a/src/components/BreadCrumbsDynamic.tsx
+++ b/src/components/BreadCrumbsDynamic.tsx
@@ -18,6 +18,7 @@ export const BreadCrumbsDynamic = () => {
margin: 0,
width: '100%',
mx: 'auto',
+ px: 2,
boxSizing: 'border-box',
maxWidth: '1128px',
}}
diff --git a/src/pages/mentorship/ad-hoc-timeline.tsx b/src/pages/mentorship/ad-hoc-timeline.tsx
index 77bedc3..5cc09a6 100644
--- a/src/pages/mentorship/ad-hoc-timeline.tsx
+++ b/src/pages/mentorship/ad-hoc-timeline.tsx
@@ -26,7 +26,7 @@ const MentorshipAdHocTimelinePage = ({ data, footer }: CombinedResponse) => {
return (
<>
- {isMobile ? null : }
+
diff --git a/src/pages/mentorship/code-of-conduct.tsx b/src/pages/mentorship/code-of-conduct.tsx
index 069b4f6..be5face 100644
--- a/src/pages/mentorship/code-of-conduct.tsx
+++ b/src/pages/mentorship/code-of-conduct.tsx
@@ -4,7 +4,6 @@ import { Box, Typography } from '@mui/material';
import { GetServerSideProps } from 'next';
import { BreadCrumbsDynamic, CodeOfConductSection } from '@components';
-import { useIsMobile } from '@utils/theme-utils';
import { MentorshipCodeOfConductData } from '@utils/types';
import { fetchData } from 'lib/api';
@@ -15,10 +14,9 @@ interface AboutUsCodeOfConductPageProps {
const MentorshipCodeOfConductPage = ({
mentorshipCodeOfConduct,
}: AboutUsCodeOfConductPageProps) => {
- const isMobile = useIsMobile();
return (
<>
- {isMobile ? null : }
+
{
} = data;
const faqSections = [commonFaqSection, mentorsFaqSection, menteesFaqSection];
- const isMobile = useIsMobile();
return (
<>
- {isMobile ? : null}
+
{
- const isMobile = useIsMobile();
return (
<>
- {isMobile ? null : }
+
{
const isMobile = useIsMobile();
return (
<>
- {isMobile ? null : }
+
diff --git a/src/pages/mentorship/mentee-registration.tsx b/src/pages/mentorship/mentee-registration.tsx
index ac85c4b..60bc630 100644
--- a/src/pages/mentorship/mentee-registration.tsx
+++ b/src/pages/mentorship/mentee-registration.tsx
@@ -2,10 +2,8 @@ import { zodResolver } from '@hookform/resolvers/zod';
import {
Alert,
Box,
- Breadcrumbs,
Button,
Container,
- Link,
Paper,
Stack,
Typography,
@@ -16,6 +14,7 @@ import NextLink from 'next/link';
import React, { useEffect, useState } from 'react';
import { FormProvider, UseFormReturn, useForm } from 'react-hook-form';
+import { BreadCrumbsDynamic } from '@components';
import {
menteeFormDefaultValues,
menteeFormSchema,
@@ -175,24 +174,7 @@ const MenteeRegistrationPage = () => {
return (
<>
-
-
-
- Home
-
-
- Mentorship
-
- Mentee Registration
-
-
-
+
{
if (submissionStatus === 'success') {
return (
-
-
+
+
-
- Application Submitted!
-
-
- Thank you for applying to be a mentor. Your application has been
- received and is now being reviewed. We will get back to you soon.
-
-
-
-
-
-
+
+
+ Application Submitted!
+
+
+ Thank you for applying to be a mentor. Your application has been
+ received and is now being reviewed. We will get back to you soon.
+
+
+
+
+
+
+ >
);
}
return (
-
-
-
+
+
+
-
-
-
- Step {activeStep} of {totalSteps}
-
-
- {submissionStatus === 'error' && (
-
- {errorMessage}
-
- )}
-
-
+
-
-
+ >
+ Step {activeStep} of {totalSteps}
+
-
- {activeStep === 1 && }
- {activeStep === 2 && }
- {activeStep === 3 && }
- {activeStep === 4 && }
- {activeStep === 5 && }
-
+ {submissionStatus === 'error' && (
+
+ {errorMessage}
+
+ )}
-
-
+
+
-
- {Object.keys(formMethods.formState.errors).length > 0 && (
-
-
- Please fix the following validation errors:
-
-
- {Object.entries(formMethods.formState.errors).map(
- ([key, error]: [string, any]) => {
- const label =
- {
- fullName: 'Full Name',
- email: 'Email',
- slackDisplayName: 'Slack Name',
- country: 'Country',
- city: 'City',
- position: 'Position',
- companyName: 'Company Name',
- calendlyLink: 'Calendly Link',
- menteeExpectations: 'Mentee Expectations',
- openToNonWomen: 'Open to non-women',
- isLongTermMentor: 'Mentorship Format',
- maxMentees: 'Max Mentees',
- adHocAvailability: 'Ad-hoc Availability',
- languages: 'Languages',
- yearsExperience: 'Years of Experience',
- bio: 'Bio',
- technicalAreas: 'Technical Areas',
- codeLanguages: 'Programming Languages',
- mentorshipFocusAreas: 'Mentorship Focus Areas',
- linkedin: 'LinkedIn',
- identity: 'Identity',
- pronouns: 'Pronouns',
- socialHighlight: 'Social Highlight',
- termsAgreed: 'Terms Agreement',
- }[key] || key;
- return (
- -
-
- {label}:{' '}
- {error?.message || 'Invalid value'}
-
-
- );
- },
- )}
-
-
- )}
+
+ {activeStep === 1 && }
+ {activeStep === 2 && }
+ {activeStep === 3 && }
+ {activeStep === 4 && }
+ {activeStep === 5 && }
- {activeStep === totalSteps ? (
-
- ) : (
+
- )}
-
-
-
-
-
+
+
+ {Object.keys(formMethods.formState.errors).length > 0 && (
+
+
+ Please fix the following validation errors:
+
+
+ {Object.entries(formMethods.formState.errors).map(
+ ([key, error]: [string, any]) => {
+ const label =
+ {
+ fullName: 'Full Name',
+ email: 'Email',
+ slackDisplayName: 'Slack Name',
+ country: 'Country',
+ city: 'City',
+ position: 'Position',
+ companyName: 'Company Name',
+ calendlyLink: 'Calendly Link',
+ menteeExpectations: 'Mentee Expectations',
+ openToNonWomen: 'Open to non-women',
+ isLongTermMentor: 'Mentorship Format',
+ maxMentees: 'Max Mentees',
+ adHocAvailability: 'Ad-hoc Availability',
+ languages: 'Languages',
+ yearsExperience: 'Years of Experience',
+ bio: 'Bio',
+ technicalAreas: 'Technical Areas',
+ codeLanguages: 'Programming Languages',
+ mentorshipFocusAreas: 'Mentorship Focus Areas',
+ linkedin: 'LinkedIn',
+ identity: 'Identity',
+ pronouns: 'Pronouns',
+ socialHighlight: 'Social Highlight',
+ termsAgreed: 'Terms Agreement',
+ }[key] || key;
+ return (
+ -
+
+ {label}:{' '}
+ {error?.message || 'Invalid value'}
+
+
+ );
+ },
+ )}
+
+
+ )}
+
+
+ {activeStep === totalSteps ? (
+
+ ) : (
+
+ )}
+
+
+
+
+
+ >
);
};
diff --git a/src/pages/mentorship/mentors.tsx b/src/pages/mentorship/mentors.tsx
index 9b4a16c..be64f47 100644
--- a/src/pages/mentorship/mentors.tsx
+++ b/src/pages/mentorship/mentors.tsx
@@ -161,7 +161,7 @@ const MentorsPage = () => {
return (
<>
- {isMobile ? null : }
+
{/* Filter / Search bar */}
diff --git a/src/pages/mentorship/resources.tsx b/src/pages/mentorship/resources.tsx
index 08babfb..53809dc 100644
--- a/src/pages/mentorship/resources.tsx
+++ b/src/pages/mentorship/resources.tsx
@@ -4,7 +4,6 @@ import { GetServerSideProps } from 'next';
import React from 'react';
import { Title, ResourcesCard, Footer, BreadCrumbsDynamic } from '@components';
-import { useIsMobile } from '@utils/theme-utils';
import { FooterResponse, MentorshipResourcesResponse } from '@utils/types';
import { fetchData } from 'lib/api';
import footerData from 'lib/responses/footer.json';
@@ -16,12 +15,11 @@ type CombinedResponse = {
};
const MentorshipResourcesPage: React.FC = () => {
- const isMobile = useIsMobile();
const { heroTitle, heroDescription, resources } = pageData;
return (
<>
- {isMobile ? null : }
+
{
const muiTheme = useTheme();
const cardColors = muiTheme.palette.custom.studyGroupCardColors;
- const isMobile = useIsMobile();
return (
- {isMobile ? null : }
+