From 20bd48756defa2353704ed7c6c5bafc8c173383b Mon Sep 17 00:00:00 2001 From: Gautam Pahuja <32642691+gautam-relayr@users.noreply.github.com> Date: Sat, 1 Dec 2018 13:41:42 +0100 Subject: [PATCH] Remove duplicate declaration of defaultprops in calendar component (#1566) * Removed duplicate declaration of defaultprops in calendar component * double quotes back to single quotes --- src/calendar.jsx | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/src/calendar.jsx b/src/calendar.jsx index 22b592fd3..4973477ab 100644 --- a/src/calendar.jsx +++ b/src/calendar.jsx @@ -125,15 +125,6 @@ export default class Calendar extends React.Component { }; } - static get defaultProps() { - return { - onDropdownFocus: () => {}, - monthsShown: 1, - forceShowMonthNavigation: false, - timeCaption: 'Time' - }; - } - constructor(props) { super(props); @@ -286,7 +277,7 @@ export default class Calendar extends React.Component { const dayNames = []; if (this.props.showWeekNumbers) { dayNames.push( -
+
{this.props.weekLabel || '#'}
); @@ -296,7 +287,7 @@ export default class Calendar extends React.Component { const day = addDays(startOfWeek, offset); const weekDayName = this.formatWeekday(day, this.props.locale); return ( -
+
{weekDayName}
); @@ -346,7 +337,7 @@ export default class Calendar extends React.Component { return (