I have the following code in return. It is creating a drop down values. I want to change the font weight of the drop down value for ${status} and ${dataIdText} to bold
<Modal.Body className="container-fluid">
<div className='row'>
<label className='col-sm-4' htmlFor='portalSelector'>Exiting item: </label>
<select className='col-sm-8' id='portalSelector' onChange={this.onSelectionChange} value={this.state.selectedItem}>
<option key='-1' label='--Make a selection--' value='-1' />
{((dataId === '') ? stateVar : stateVar.filter((val)=> (val.dataId +"") === dataId )).map((p, index) => {
const status = p.status === 'PENDING' ? '' : p.status === 'SENT'?'':'Unscheduled'
const dataIdDef = datasets.filter((val)=> val.dataId === p.dataId )[0]
const dataIdText = p.dataId === -1? '' : `${dataIdDef.dataIdname} - `
const scheduleDtText = p.scheduleDt === 5711817600000 ? '' : 'scheduled for ' + moment(p.scheduleDt).format('DD/MM/YYYY HH:mm')
return (<option
className='data'
key={index}
value={index}
label={`${status} ${dataIdText} ${p.title} ${scheduleDtText}`}>
</option>)
}
)}
</select>
</div>
</Modal.Body>
I have tried to remove the label property and place the text inside Options tag itself but no luck.