Skip to content

Commit

Permalink
yarn proptypes && yarn docs:api && yarn docs:typescript:formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 25, 2021
1 parent d8858ea commit 0da41e4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/src/pages/components/date-picker/CustomDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default function CustomDay() {
const classes = useStyles();
const [value, setValue] = React.useState(new Date());

const renderWeekPickerDay = (date, _selectedDates, PickersDayComponentProps) => {
const renderWeekPickerDay = (date, _selectedDates, pickersDayProps) => {
if (!value) {
return <PickersDay {...PickersDayComponentProps} />;
return <PickersDay {...pickersDayProps} />;
}

const start = startOfWeek(value);
Expand All @@ -48,7 +48,7 @@ export default function CustomDay() {

return (
<PickersDay
{...PickersDayComponentProps}
{...pickersDayProps}
disableMargin
className={clsx({
[classes.highlight]: dayIsBetween,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ DateRangePicker.propTypes /* remove-proptypes */ = {
reduceAnimations: PropTypes.bool,
/**
* Custom renderer for `<DateRangePicker />` days. @DateIOType
* @example (date, DateRangePickerDayProps) => <DateRangePickerDay {...DateRangePickerDayProps} />
* @example (date, dateRangePickerDayProps) => <DateRangePickerDay {...dateRangePickerDayProps} />
*/
renderDay: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ DesktopDateRangePicker.propTypes /* remove-proptypes */ = {
reduceAnimations: PropTypes.bool,
/**
* Custom renderer for `<DateRangePicker />` days. @DateIOType
* @example (date, DateRangePickerDayProps) => <DateRangePickerDay {...DateRangePickerDayProps} />
* @example (date, dateRangePickerDayProps) => <DateRangePickerDay {...dateRangePickerDayProps} />
*/
renderDay: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ MobileDateRangePicker.propTypes /* remove-proptypes */ = {
reduceAnimations: PropTypes.bool,
/**
* Custom renderer for `<DateRangePicker />` days. @DateIOType
* @example (date, DateRangePickerDayProps) => <DateRangePickerDay {...DateRangePickerDayProps} />
* @example (date, dateRangePickerDayProps) => <DateRangePickerDay {...dateRangePickerDayProps} />
*/
renderDay: PropTypes.func,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ StaticDateRangePicker.propTypes /* remove-proptypes */ = {
reduceAnimations: PropTypes.bool,
/**
* Custom renderer for `<DateRangePicker />` days. @DateIOType
* @example (date, DateRangePickerDayProps) => <DateRangePickerDay {...DateRangePickerDayProps} />
* @example (date, dateRangePickerDayProps) => <DateRangePickerDay {...dateRangePickerDayProps} />
*/
renderDay: PropTypes.func,
/**
Expand Down

0 comments on commit 0da41e4

Please sign in to comment.