Skip to content

Commit 05a884e

Browse files
committed
Removing prop types and setting defaults
1 parent 687eb77 commit 05a884e

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/calendar-list/item.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import PropTypes from 'prop-types';
21
import XDate from 'xdate';
32

43
import React, {useRef, useMemo, useContext} from 'react';
@@ -81,6 +80,8 @@ const CalendarListItem = React.memo((props: CalendarListItemProps) => {
8180
if (item.getTime) {
8281
return (
8382
<Calendar
83+
hideArrows={true}
84+
hideExtraDays={true}
8485
{...props}
8586
testID={testID}
8687
current={getCalendarDateString(item.toString())}
@@ -106,14 +107,3 @@ const CalendarListItem = React.memo((props: CalendarListItemProps) => {
106107

107108
export default CalendarListItem;
108109
CalendarListItem.displayName = 'CalendarListItem';
109-
CalendarListItem.propTypes = {
110-
...Calendar.propTypes,
111-
item: PropTypes.any,
112-
calendarWidth: PropTypes.number,
113-
calendarHeight: PropTypes.number,
114-
horizontal: PropTypes.bool
115-
};
116-
CalendarListItem.defaultProps = {
117-
hideArrows: true,
118-
hideExtraDays: true
119-
};

0 commit comments

Comments
 (0)