From 2cbeddfcef34da42ea0cef0d7502af48d3489664 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 10 Oct 2023 16:00:08 +0200 Subject: [PATCH] moved JSDoc comments to the initializer --- .../x-date-pickers/src/DatePicker/DatePicker.tsx | 16 ++++++++-------- .../src/DesktopDatePicker/DesktopDatePicker.tsx | 16 ++++++++-------- .../src/MobileDatePicker/MobileDatePicker.tsx | 16 ++++++++-------- .../src/StaticDatePicker/StaticDatePicker.tsx | 16 ++++++++-------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx index d1f748ef638c..caa3630e2a71 100644 --- a/packages/x-date-pickers/src/DatePicker/DatePicker.tsx +++ b/packages/x-date-pickers/src/DatePicker/DatePicker.tsx @@ -12,6 +12,14 @@ type DatePickerComponent = (( props: DatePickerProps & React.RefAttributes, ) => 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( inProps: DatePickerProps, ref: React.Ref, @@ -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 }; diff --git a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx index acd970763465..1517ce47d9f7 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -19,6 +19,14 @@ type DesktopDatePickerComponent = (( props: DesktopDatePickerProps & React.RefAttributes, ) => 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( inProps: DesktopDatePickerProps, ref: React.Ref, @@ -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 }; diff --git a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx index 15337f9b38d0..45a5ca7cf71b 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/MobileDatePicker.tsx @@ -17,6 +17,14 @@ type MobileDatePickerComponent = (( props: MobileDatePickerProps & React.RefAttributes, ) => 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( inProps: MobileDatePickerProps, ref: React.Ref, @@ -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 }; diff --git a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx index 6e424545fb70..90cb33e36839 100644 --- a/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/x-date-pickers/src/StaticDatePicker/StaticDatePicker.tsx @@ -13,6 +13,14 @@ type StaticDatePickerComponent = (( props: StaticDatePickerProps & React.RefAttributes, ) => 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( inProps: StaticDatePickerProps, ref: React.Ref, @@ -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 };