Skip to content

Commit 0c38c73

Browse files
committed
Remove unnecessary props
1 parent 9296355 commit 0c38c73

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/DateInput.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,13 @@ export default class DateInput extends PureComponent {
397397
}
398398

399399
renderDay = () => {
400-
const { maxDetail, showLeadingZeros } = this.props;
400+
const { showLeadingZeros } = this.props;
401401
const { day: value, month, year } = this.state;
402402

403403
return (
404404
<DayInput
405405
key="day"
406406
{...this.commonInputProps}
407-
maxDetail={maxDetail}
408407
month={month}
409408
showLeadingZeros={showLeadingZeros}
410409
value={value}
@@ -414,14 +413,13 @@ export default class DateInput extends PureComponent {
414413
}
415414

416415
renderMonth = () => {
417-
const { maxDetail, showLeadingZeros } = this.props;
416+
const { showLeadingZeros } = this.props;
418417
const { month: value, year } = this.state;
419418

420419
return (
421420
<MonthInput
422421
key="month"
423422
{...this.commonInputProps}
424-
maxDetail={maxDetail}
425423
showLeadingZeros={showLeadingZeros}
426424
value={value}
427425
year={year}

0 commit comments

Comments
 (0)