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 f60ff92 commit 78e523d
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/DateTimePicker/DateTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ type DateTimePickerComponent = (<TDate>(
props: DateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

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

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

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

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

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

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

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

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

0 comments on commit 78e523d

Please sign in to comment.