Would it be useful to have this function within Dialog's import to be a more generic, utility function? Such as isMobileScreen or isFullScreen that can safely be wrapped around any component? I often find myself using it in this manner where I need a boolean telling me if I am mobile or not, where something like <Hidden /> wouldn't be useful.
If there is a different way to acquire what breakpoint the window is currently using, I apologize for making this issue 馃槂
Have withMobileDialog be a utility function rather than under Dialog
@Auchindoun The implementation of withMobileDialog is pretty empty.
https://github.com/mui-org/material-ui/blob/1839c0804fd9671f42cf5bc09160869afc9e08c4/packages/material-ui/src/Dialog/withMobileDialog.js#L10-L22
It's a sugar wrapper on top of withWidth. I agree, we should be documenting it.
Most helpful comment
@Auchindoun The implementation of
withMobileDialogis pretty empty.https://github.com/mui-org/material-ui/blob/1839c0804fd9671f42cf5bc09160869afc9e08c4/packages/material-ui/src/Dialog/withMobileDialog.js#L10-L22
It's a sugar wrapper on top of
withWidth. I agree, we should be documenting it.