From 149b6d7d48f1955510ec63d71ea57fbd2b1c1db9 Mon Sep 17 00:00:00 2001 From: himaniraghav3 Date: Tue, 30 Sep 2025 16:49:04 +0530 Subject: [PATCH 1/2] fix rerouting and project name exposed --- .../apply-opportunity-modal/ApplyOpportunityModal.tsx | 6 +++--- src/apps/copilots/src/pages/copilot-request-form/index.tsx | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx index b52e92447..20f8a80f2 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx @@ -66,10 +66,10 @@ const ApplyOpportunityModal: FC = props => { We truly value your interest and effort. Your application will be reviewed promptly.` : `We're excited to see your interest in joining our team as a copilot - for the "${props.projectName}" project! Before we proceed, we want to - ensure that you have carefully reviewed the project requirements and + for this opportunity! Before we proceed, we want to + ensure that you have carefully reviewed the opportunity requirements and are committed to meeting them. Please write below the reason(s) - why you believe you're a good fit for this project + why you believe you're a good fit for this opportunity (e.g., previous experience, availability, etc.).` } diff --git a/src/apps/copilots/src/pages/copilot-request-form/index.tsx b/src/apps/copilots/src/pages/copilot-request-form/index.tsx index 648630d99..87f9f0c0a 100644 --- a/src/apps/copilots/src/pages/copilot-request-form/index.tsx +++ b/src/apps/copilots/src/pages/copilot-request-form/index.tsx @@ -13,6 +13,7 @@ import { getProject, getProjects, ProjectsResponse, useProjects } from '../../se import { ProjectTypes, ProjectTypeValues } from '../../constants' import { CopilotRequestResponse, saveCopilotRequest, useCopilotRequest } from '../../services/copilot-requests' import { Project } from '../../models/Project' +import { rootRoute } from '../../copilots.routes' import styles from './styles.module.scss' @@ -321,7 +322,7 @@ const CopilotRequestForm: FC<{}> = () => { setPaymentType('') // Added a small timeout for the toast to be visible properly to the users setTimeout(() => { - navigate('/requests') + navigate(`${rootRoute}/requests`) }, 1000) }) .catch(e => { From 52f36cc228dfb3b92ccd3a2d168bd98b4fcdebaa Mon Sep 17 00:00:00 2001 From: himaniraghav3 Date: Tue, 30 Sep 2025 16:54:12 +0530 Subject: [PATCH 2/2] fix linting --- .../apply-opportunity-modal/ApplyOpportunityModal.tsx | 1 - .../copilots/src/pages/copilot-opportunity-details/index.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx index 20f8a80f2..24473fefa 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx @@ -10,7 +10,6 @@ import styles from './styles.module.scss' interface ApplyOpportunityModalProps { onClose: () => void copilotOpportunityId: number - projectName: string onApplied: () => void } diff --git a/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx b/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx index d07f5aa23..36dbe627a 100644 --- a/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx +++ b/src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx @@ -303,7 +303,6 @@ const CopilotOpportunityDetails: FC<{}> = () => { )