File tree Expand file tree Collapse file tree
shared/src/features/opportunity
webapp/pages/opportunity/[id] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export const OPPORTUNITY_FRAGMENT = gql`
9898 max
9999 period
100100 }
101+ equity
101102 }
102103 location {
103104 type
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ export type OpportunityMeta = {
5858 salary ?: Salary ;
5959 seniorityLevel ?: ProtoEnumValue ;
6060 roleType ?: number ;
61+ equity ?: boolean ;
6162} ;
6263
6364export type Keyword = {
Original file line number Diff line number Diff line change @@ -245,6 +245,11 @@ const metaMap = {
245245 transformer : ( value : Opportunity [ 'location' ] ) =>
246246 locationTypeMap [ value ?. [ 0 ] ?. type || LocationType . UNSPECIFIED ] ,
247247 } ,
248+ equity : {
249+ title : 'Equity' ,
250+ transformer : ( value : OpportunityMeta [ 'equity' ] ) =>
251+ value ? 'Included' : null ,
252+ } ,
248253 seniorityLevel : {
249254 title : 'Seniority level' ,
250255 transformer : ( value : OpportunityMeta [ 'seniorityLevel' ] ) =>
@@ -492,6 +497,10 @@ const JobPage = (): ReactElement => {
492497 ? opportunity . location
493498 : opportunity . meta [ metaKey ] ;
494499
500+ if ( value === false || value === null ) {
501+ return false ;
502+ }
503+
495504 return (
496505 < Fragment key = { metaKey } >
497506 < Typography
You can’t perform that action at this time.
0 commit comments