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 560f06e commit 1cc08d7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ type DesktopTimePickerComponent = (<TDate>(
props: DesktopTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [DesktopTimePicker API](https://mui.com/x/api/date-pickers/desktop-time-picker/)
*/
const DesktopTimePicker = React.forwardRef(function DesktopTimePicker<TDate>(
inProps: DesktopTimePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -415,12 +423,4 @@ DesktopTimePicker.propTypes = {
views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired),
} as any;

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

/**
* Demos:
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [MobileTimePicker API](https://mui.com/x/api/date-pickers/mobile-time-picker/)
*/
const MobileTimePicker = React.forwardRef(function MobileTimePicker<TDate>(
inProps: MobileTimePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -357,12 +365,4 @@ MobileTimePicker.propTypes = {
views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired),
} as any;

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

/**
* Demos:
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [StaticTimePicker API](https://mui.com/x/api/date-pickers/static-time-picker/)
*/
const StaticTimePicker = React.forwardRef(function StaticTimePicker<TDate>(
inProps: StaticTimePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -274,12 +282,4 @@ StaticTimePicker.propTypes = {
views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired),
} as any;

/**
* Demos:
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [StaticTimePicker API](https://mui.com/x/api/date-pickers/static-time-picker/)
*/
export { StaticTimePicker };
16 changes: 8 additions & 8 deletions packages/x-date-pickers/src/TimePicker/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ type TimePickerComponent = (<TDate>(
props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
* - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
*
* API:
* - [TimePicker API](https://mui.com/x/api/date-pickers/time-picker/)
*/
const TimePicker = React.forwardRef(function TimePicker<TDate>(
inProps: TimePickerProps<TDate>,
ref: React.Ref<HTMLDivElement>,
Expand Down Expand Up @@ -337,12 +345,4 @@ TimePicker.propTypes = {
views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired),
} as any;

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

0 comments on commit 1cc08d7

Please sign in to comment.