Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import styles from './styles.module.scss'
interface ApplyOpportunityModalProps {
onClose: () => void
copilotOpportunityId: number
projectName: string
onApplied: () => void
}

Expand Down Expand Up @@ -66,10 +65,10 @@ const ApplyOpportunityModal: FC<ApplyOpportunityModalProps> = 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.).`
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ const CopilotOpportunityDetails: FC<{}> = () => {
<ApplyOpportunityModal
copilotOpportunityId={opportunity?.id}
onClose={onCloseApplyModal}
projectName={opportunity?.projectName}
onApplied={onApplied}
/>
)
Expand Down
3 changes: 2 additions & 1 deletion src/apps/copilots/src/pages/copilot-request-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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 => {
Expand Down