Skip to content

Commit

Permalink
moved JSDoc comments to the initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen committed Oct 10, 2023
1 parent b02336f commit 2cbeddf
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions packages/x-date-pickers/src/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ type DatePickerComponent = (<TDate>(
props: DatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)
*/
const DatePicker = React.forwardRef(function DatePicker<TDate>(
inProps: DatePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -373,12 +381,4 @@ DatePicker.propTypes = {
yearsPerRow: PropTypes.oneOf([3, 4]),
} as any;

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)
*/
export { DatePicker };
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ type DesktopDatePickerComponent = (<TDate>(
props: DesktopDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)
*/
const DesktopDatePicker = React.forwardRef(function DesktopDatePicker<TDate>(
inProps: DesktopDatePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -413,12 +421,4 @@ DesktopDatePicker.propTypes = {
yearsPerRow: PropTypes.oneOf([3, 4]),
} as any;

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)
*/
export { DesktopDatePicker };
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ type MobileDatePickerComponent = (<TDate>(
props: MobileDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)
*/
const MobileDatePicker = React.forwardRef(function MobileDatePicker<TDate>(
inProps: MobileDatePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -409,12 +417,4 @@ MobileDatePicker.propTypes = {
yearsPerRow: PropTypes.oneOf([3, 4]),
} as any;

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)
*/
export { MobileDatePicker };
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ type StaticDatePickerComponent = (<TDate>(
props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [StaticDatePicker API](https://mui.com/x/api/date-pickers/static-date-picker/)
*/
const StaticDatePicker = React.forwardRef(function StaticDatePicker<TDate>(
inProps: StaticDatePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -329,12 +337,4 @@ StaticDatePicker.propTypes = {
yearsPerRow: PropTypes.oneOf([3, 4]),
} as any;

/**
* Demos:
* - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [StaticDatePicker API](https://mui.com/x/api/date-pickers/static-date-picker/)
*/
export { StaticDatePicker };

0 comments on commit 2cbeddf

Please sign in to comment.