Closed bneigher closed 4 years ago
You import StaticDateRangePicker
, it contains the content of the popup, it's isolated from the inputs.
@oliviertassinari I'm sorry, I don't believe you answered the question...
There is a render method (renderDay) which allows us to make custom day components. It is called correctly on the static day picker, it is not being called on the static day range picker where the documentation says it is a prop.
I'm not referring to the renderInput method. Can you reopen or at least address this please?
Please provide a minimal reproduction test case. This would help a lot 👷 . A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!
@oliviertassinari Note the renderDay method not being called https://codesandbox.io/s/reverent-faraday-fs49n?file=/src/App.jsx
Environment
Steps to reproduce
const useStyles = makeStyles((theme) => ({}))
const StaticDateRangePicker = (props) => { const classes = useStyles()
}
export { StaticDateRangePicker }
render() { <StaticDateRangePicker range={[moment().subtract(1, "day"), moment()]} onChangedDate={(dateA, dateB) => { this.onSetDateRange(dateA, dateB) }} /> }