react-datetime-picker
react-datetime-picker copied to clipboard
All styling gone after commenting out 'babel-plugin-transform-react-remove-prop-types' in babel.config
I'm having an issue where I had to comment out:
isDevelopmentEnv && [
'babel-plugin-transform-react-remove-prop-types',
{
removeImport: true
}
]
].filter(Boolean)
because React-Bootstrap's modal would fail with this option called in production. Modal.js is working now but I lose all styling to DateTimePicker.
<Modal
show={this.state.showModal}
onHide={this.handleClose}
animation={false}
>
<Modal.Header closeButton>
<Modal.Title>Create Outage</Modal.Title>
</Modal.Header>
<Modal.Body>
<Form onSubmit={e => this.handleSubmit(e)}>
<Form.Group>
Start Date
<DateTimePicker
onChange={this.onChangeStart}
value={this.state.startTime}
returnValue="start"
startDateId="start"
/>
............
I'm not a master at the deeper aspects of JS but I'm assuming DateTimePicker needs to be recognized as hasOwnProps to work?