-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] Stop using WrapperVariantContext
in Clock
#8083
Conversation
Netlify deploy previewNetlify deploy preview: https://deploy-preview-8083--material-ui-x.netlify.app/ Updated pagesNo updates. These are the results for the performance tests:
|
packages/x-date-pickers/src/MobileDateTimePicker/MobileDateTimePicker.tsx
Show resolved
Hide resolved
@@ -41,7 +41,7 @@ DateTimePicker.propTypes = { | |||
ampm: PropTypes.bool, | |||
/** | |||
* Display ampm controls under the clock (instead of in the toolbar). | |||
* @default false | |||
* @default true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default was wrong. 🙈
@@ -37,12 +37,14 @@ const DesktopDateTimePicker = React.forwardRef(function DesktopDateTimePicker<TD | |||
seconds: null, | |||
...defaultizedProps.viewRenderers, | |||
}; | |||
const ampmInClock = defaultizedProps.ampmInClock ?? true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be pointless until #7279 is implemented.
Do you think it makes sense to omit it for now?
Part of #7372
WrapperVariantContext
inClock
ampmInClock
prop defaultized totrue
ondesktop
Time
andDateTime
picker types by removing duplicated (redundant)ampm
prop and replacing it withampmInClock
with more specific (correct) default documentation