File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
src/apps/copilots/src/pages/copilot-opportunity-details Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import {
3535} from '../../services/copilot-opportunities'
3636import { FormattedMembers , useMembers } from '../../services/members'
3737import { copilotRoutesMap } from '../../copilots.routes'
38+ import { ProjectType } from '../../constants'
3839
3940import { ApplyOpportunityModal } from './apply-opportunity-modal'
4041import {
@@ -126,6 +127,21 @@ const CopilotOpportunityDetails: FC<{}> = () => {
126127
127128 const application = copilotApplications && copilotApplications [ 0 ]
128129
130+ const getOpportunityType = ( type : string ) : ProjectType => {
131+ switch ( type ) {
132+ case 'ai' :
133+ return ProjectType . ai
134+ case 'datascience' :
135+ return ProjectType . datascience
136+ case 'dev' :
137+ return ProjectType . developement
138+ case 'design' :
139+ return ProjectType . design
140+ default :
141+ return ProjectType . qa
142+ }
143+ }
144+
129145 return (
130146 < ContentLayout
131147 title = 'Copilot Opportunity'
@@ -203,7 +219,11 @@ const CopilotOpportunityDetails: FC<{}> = () => {
203219 < IconOutline . CogIcon className = { styles . icon } />
204220 < div className = { styles . infoText } >
205221 < span className = { styles . infoHeading } > Type</ span >
206- < span className = { styles . infoValue } > { opportunity ?. type } </ span >
222+ < span
223+ className = { styles . infoValue }
224+ >
225+ { opportunity ?. type && getOpportunityType ( opportunity ?. type ) }
226+ </ span >
207227 </ div >
208228 </ div >
209229 < div className = { styles . infoColumn } >
You can’t perform that action at this time.
0 commit comments