Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DateTimePicker] Fix how the component is exported #7172

Merged
merged 2 commits into from Dec 14, 2022

Conversation

kealjones-wk
Copy link
Contributor

@kealjones-wk kealjones-wk commented Dec 12, 2022

DateTimePickers export pattern doesn't match that of all the other x-date-picker components.

This change fixes an issue with react-docgen-typescript being able to locate the component. I am already in the process of looking for a fix in react-docgen-typescript but its not as simple. This change over here seems small enough and has no impact and would improve consistency, so maybe we could get this in in the meantime?

Examples of other component exports:
ClockPicker
CalendarPicker
DatePicker
DesktopDateTimePicker
DesktopDatePicker
DesktopTimePicker
LocalizationProvider
MobileDatePicker
MobileTimePicker
MobileDateTimePicker
MonthPicker
PickersActionBar
PickersDay
StaticDatePicker
StaticDateTimePicker
StaticTimePicker
TimePicker
YearPicker

Signed-off-by: Keal Jones 41018730+kealjones-wk@users.noreply.github.com

Signed-off-by: Keal Jones <41018730+kealjones-wk@users.noreply.github.com>
@mui-bot
Copy link

mui-bot commented Dec 12, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 596 1,286.4 603.3 820.46 254.652
Sort 100k rows ms 779.1 1,321.6 1,321.6 1,045.48 183.688
Select 100k rows ms 216.8 338.9 230.8 260.34 45.9
Deselect 100k rows ms 148.4 280.2 192.4 215.72 53.697

Generated by 🚫 dangerJS against 6921bdb

@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Dec 13, 2022
Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution !

@flaviendelangle flaviendelangle merged commit 3279ffe into mui:master Dec 14, 2022
@flaviendelangle flaviendelangle changed the title [DateTimePicker] Update export pattern [DateTimePicker] Fix how the component is exported Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants