I'm using the DateRangePicker component from MUI X in my React application. I want to configure it such that users can only select date ranges that represent a full week (i.e., from Monday to Sunday).
Here's the basic setup I have:
import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
<DateRangePicker localeText={{ start: 'Check-in', end: 'Check-out' }} />
How can I modify the DateRangePicker to enforce the selection of only weekly ranges? Ideally, if a user selects a date, the component should auto-fill the range to the corresponding week. Any guidance or examples would be greatly appreciated!