@@ -39,6 +39,7 @@ type Props = {
39
39
setStartTime : ( value ?: string ) => void ;
40
40
setApplicationDue : ( value : string ) => void ;
41
41
validation : Record < ValidertFelt , string | undefined > ;
42
+ erJobbmesse : boolean ;
42
43
} ;
43
44
44
45
class PraktiskeOpplysninger extends React . Component < Props > {
@@ -100,7 +101,7 @@ class PraktiskeOpplysninger extends React.Component<Props> {
100
101
} ;
101
102
102
103
render ( ) {
103
- const { ad, workday, workhours } = this . props ;
104
+ const { ad, workday, workhours, erJobbmesse } = this . props ;
104
105
105
106
const workdayAsArray : string [ ] | undefined = workday
106
107
? isJson ( workday )
@@ -175,16 +176,18 @@ class PraktiskeOpplysninger extends React.Component<Props> {
175
176
< Radio value = "Ikke oppgitt" > Ikke oppgitt</ Radio >
176
177
</ RadioGroup >
177
178
< div className = { css . skillelinje } />
178
- < div >
179
- < TextField
180
- label = { < Skjemalabel påkrevd > Antall stillinger</ Skjemalabel > }
181
- value = { ad . properties . positioncount }
182
- onChange = { this . onPositioncountChange }
183
- error = { this . props . validation . positioncount }
184
- type = "number"
185
- min = "1"
186
- />
187
- </ div >
179
+ { ! erJobbmesse && (
180
+ < div >
181
+ < TextField
182
+ label = { < Skjemalabel påkrevd > Antall stillinger</ Skjemalabel > }
183
+ value = { ad . properties . positioncount }
184
+ onChange = { this . onPositioncountChange }
185
+ error = { this . props . validation . positioncount }
186
+ type = "number"
187
+ min = "1"
188
+ />
189
+ </ div >
190
+ ) }
188
191
< Fieldset
189
192
className = { css . datepickerOgCheckbox }
190
193
legend = { < Skjemalabel påkrevd > Søknadsfrist</ Skjemalabel > }
0 commit comments