Skip to content

Commit

Permalink
[core] Sort props ASC (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jun 25, 2020
1 parent 88cb622 commit b470d65
Show file tree
Hide file tree
Showing 35 changed files with 240 additions and 241 deletions.
78 changes: 34 additions & 44 deletions docs/prop-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/src/CalendarSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export const CalendarSkeleton: React.FC<CalendarSkeletonProps> = withDefaultProp

return (
<div className={clsx(classes.root, className)} {...other}>
{monthMap.map((week, i) => (
<div key={i} className={calendarClasses.week}>
{week.map((day, i) => (
{monthMap.map((week, index) => (
<div key={index} className={calendarClasses.week}>
{week.map((day, index) => (
<Skeleton
key={i}
key={index}
variant="circle"
width={DAY_SIZE}
height={DAY_SIZE}
Expand Down
12 changes: 6 additions & 6 deletions lib/src/DateRangePicker/DateRangePickerDay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ const useStyles = makeStyles(
);

export const PureDateRangeDay = ({
day,
className,
selected,
isPreviewing,
isStartOfPreviewing,
day,
inCurrentMonth,
isEndOfHighlighting,
isEndOfPreviewing,
isHighlighting,
isEndOfHighlighting,
isPreviewing,
isStartOfHighlighting,
inCurrentMonth,
isStartOfPreviewing,
selected,
...other
}: DateRangeDayProps) => {
const utils = useUtils();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/DateRangePicker/DateRangePickerInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ export const DateRangePickerInput: React.FC<DateRangeInputProps> = ({
open,
openPicker,
rawValue,
rawValue: [start, end],
readOnly,
renderInput,
setCurrentlySelectingRangeEnd,
startText,
TextFieldProps,
rawValue: [start, end],
validationError: [startValidationError, endValidationError],
...other
}) => {
Expand Down
8 changes: 4 additions & 4 deletions lib/src/DateRangePicker/DateRangePickerToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ interface DateRangePickerToolbarProps
export const DateRangePickerToolbar: React.FC<DateRangePickerToolbarProps> = withDefaultProps(
muiComponentConfig,
({
currentlySelectingRangeEnd,
date: [start, end],
toolbarFormat,
endText,
isMobileKeyboardViewOpen,
toggleMobileKeyboardView,
currentlySelectingRangeEnd,
setCurrentlySelectingRangeEnd,
startText,
endText,
toggleMobileKeyboardView,
toolbarFormat,
toolbarTitle = 'SELECT DATE RANGE',
}) => {
const utils = useUtils();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/DateRangePicker/DateRangePickerViewDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {

export interface ExportedDesktopDateRangeCalendarProps {
/**
* How many calendars render on **desktop** DateRangePicker
* How many calendars render on **desktop** DateRangePicker.
* @default 2
*/
calendars?: 1 | 2 | 3;
Expand Down
Loading

1 comment on commit b470d65

@vercel
Copy link

@vercel vercel bot commented on b470d65 Jun 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.