muba-posting 8.0.7 → 8.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Publish5.js +54 -39
  2. package/package.json +1 -1
package/Publish5.js CHANGED
@@ -307,50 +307,65 @@ export default class Publish5 extends React.Component {
307
307
  </View>
308
308
 
309
309
  <View style={commonStyles.progressbarFieldContainer}>
310
- <Text style={commonStyles.progressbarFieldH4}>{strings('setup.mainFeatures').toUpperCase()}</Text>
310
+ {this.props.mainFeatures.length > 0 ?
311
+ <View>
312
+ <Text style={commonStyles.progressbarFieldH4}>{strings('setup.mainFeatures').toUpperCase()}</Text>
311
313
 
312
- <View style={[commonStyles.row, commonStyles.rowIcons]}>
313
- {this.props.mainFeatures.map(feature =>
314
- <IconFeature
315
- key={feature.name}
316
- name={feature.name}
317
- iconText={feature.label}
318
- visible={this.state.adTypeDetails?.filter(function (detail) { return detail.value === feature.name }).length > 0}
319
- selected={this.props.postingAd[feature.name]}
320
- disabled={!this.props.allowedToModify.features}
321
- onPress={(value) => this.props.postingAd[feature.name] = value} />
322
- )}
323
- </View>
314
+ <View style={[commonStyles.row, commonStyles.rowIcons]}>
315
+ {this.props.mainFeatures.map(feature =>
316
+ <IconFeature
317
+ key={feature.name}
318
+ name={feature.name}
319
+ iconText={feature.label}
320
+ selected={this.props.postingAd[feature.name]}
321
+ disabled={!this.props.allowedToModify.features}
322
+ onPress={(value) => this.props.postingAd[feature.name] = value} />
323
+ )}
324
+ </View>
325
+ </View>
326
+ :
327
+ null
328
+ }
324
329
 
325
- <Text style={commonStyles.progressbarFieldH4}>{strings('setup.inside').toUpperCase()}</Text>
330
+ {this.props.insideFeatures.length > 0 ?
331
+ <View>
332
+ <Text style={commonStyles.progressbarFieldH4}>{strings('setup.inside').toUpperCase()}</Text>
326
333
 
327
- <View style={[commonStyles.row, commonStyles.rowIcons]}>
328
- {this.props.insideFeatures.map(feature =>
329
- <IconFeature
330
- key={feature.name}
331
- name={feature.name}
332
- iconText={feature.label}
333
- visible={this.state.adTypeDetails?.filter(function (detail) { return detail.value === feature.name }).length > 0}
334
- selected={this.props.postingAd[feature.name]}
335
- disabled={!this.props.allowedToModify.features}
336
- onPress={(value) => this.props.postingAd[feature.name] = value} />
337
- )}
338
- </View>
334
+ <View style={[commonStyles.row, commonStyles.rowIcons]}>
335
+ {this.props.insideFeatures.map(feature =>
336
+ <IconFeature
337
+ key={feature.name}
338
+ name={feature.name}
339
+ iconText={feature.label}
340
+ selected={this.props.postingAd[feature.name]}
341
+ disabled={!this.props.allowedToModify.features}
342
+ onPress={(value) => this.props.postingAd[feature.name] = value} />
343
+ )}
344
+ </View>
345
+ </View>
346
+ :
347
+ null
348
+ }
339
349
 
340
- <Text style={commonStyles.progressbarFieldH4}>{strings('setup.otherOptions').toUpperCase()}</Text>
350
+ {this.props.otherFeatures.length > 0 ?
351
+ <View>
352
+ <Text style={commonStyles.progressbarFieldH4}>{strings('setup.otherOptions').toUpperCase()}</Text>
341
353
 
342
- <View style={[commonStyles.row, commonStyles.rowIcons]}>
343
- {this.props.otherFeatures.map(feature =>
344
- <IconFeature
345
- key={feature.name}
346
- name={feature.name}
347
- iconText={feature.label}
348
- visible={this.state.adTypeDetails?.filter(function (detail) { return detail.value === feature.name }).length > 0}
349
- selected={this.props.postingAd[feature.name]}
350
- disabled={!this.props.allowedToModify.features}
351
- onPress={(value) => this.props.postingAd[feature.name] = value} />
352
- )}
353
- </View>
354
+ <View style={[commonStyles.row, commonStyles.rowIcons]}>
355
+ {this.props.otherFeatures.map(feature =>
356
+ <IconFeature
357
+ key={feature.name}
358
+ name={feature.name}
359
+ iconText={feature.label}
360
+ selected={this.props.postingAd[feature.name]}
361
+ disabled={!this.props.allowedToModify.features}
362
+ onPress={(value) => this.props.postingAd[feature.name] = value} />
363
+ )}
364
+ </View>
365
+ </View>
366
+ :
367
+ null
368
+ }
354
369
  </View>
355
370
  </View>
356
371
  <View style={commonStyles.buttomButton}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "8.0.7",
3
+ "version": "8.0.8",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {