-
-
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] Avoid deeper than 2nd level imports #11588
Conversation
Deploy preview: https://deploy-preview-11588--material-ui-x.netlify.app/ |
@@ -32,14 +32,11 @@ import { | |||
} from '@mui/x-date-pickers/StaticDateTimePicker'; | |||
import { DateOrTimeView } from '@mui/x-date-pickers/models'; | |||
import { PickersShortcutsItem } from '@mui/x-date-pickers/PickersShortcuts'; | |||
import { DateRange } from '@mui/x-date-pickers-pro/internals/models'; | |||
import { DateRange } from '@mui/x-date-pickers-pro'; |
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.
I need to move this interface to @mui/x-date-pickers-pro/models
in a follow up, it's a shame to have to use the root import here but it's the best we can do for now
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.
Were you considering doing a follow-up?
I can do it as well. 👍
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.
Yes that's something I wanted to do for some time 👍
I'll handle it next week
Extracted from #9528
Refactor the existing imports with depth >2 In an effort to avoid future problems when we disallow them.