Skip to content

Commit fc8e91c

Browse files
Merge pull request #1249 from topcoder-platform/fix-css
fix rerouting and project name exposed
2 parents 278892f + 52f36cc commit fc8e91c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import styles from './styles.module.scss'
1010
interface ApplyOpportunityModalProps {
1111
onClose: () => void
1212
copilotOpportunityId: number
13-
projectName: string
1413
onApplied: () => void
1514
}
1615

@@ -66,10 +65,10 @@ const ApplyOpportunityModal: FC<ApplyOpportunityModalProps> = props => {
6665
We truly value your interest and effort.
6766
Your application will be reviewed promptly.`
6867
: `We're excited to see your interest in joining our team as a copilot
69-
for the "${props.projectName}" project! Before we proceed, we want to
70-
ensure that you have carefully reviewed the project requirements and
68+
for this opportunity! Before we proceed, we want to
69+
ensure that you have carefully reviewed the opportunity requirements and
7170
are committed to meeting them. Please write below the reason(s)
72-
why you believe you're a good fit for this project
71+
why you believe you're a good fit for this opportunity
7372
(e.g., previous experience, availability, etc.).`
7473
}
7574
</div>

src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ const CopilotOpportunityDetails: FC<{}> = () => {
303303
<ApplyOpportunityModal
304304
copilotOpportunityId={opportunity?.id}
305305
onClose={onCloseApplyModal}
306-
projectName={opportunity?.projectName}
307306
onApplied={onApplied}
308307
/>
309308
)

src/apps/copilots/src/pages/copilot-request-form/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { getProject, getProjects, ProjectsResponse, useProjects } from '../../se
1313
import { ProjectTypes, ProjectTypeValues } from '../../constants'
1414
import { CopilotRequestResponse, saveCopilotRequest, useCopilotRequest } from '../../services/copilot-requests'
1515
import { Project } from '../../models/Project'
16+
import { rootRoute } from '../../copilots.routes'
1617

1718
import styles from './styles.module.scss'
1819

@@ -321,7 +322,7 @@ const CopilotRequestForm: FC<{}> = () => {
321322
setPaymentType('')
322323
// Added a small timeout for the toast to be visible properly to the users
323324
setTimeout(() => {
324-
navigate('/requests')
325+
navigate(`${rootRoute}/requests`)
325326
}, 1000)
326327
})
327328
.catch(e => {

0 commit comments

Comments
 (0)