Removed portal for datepicker on mobile

• Removed:
- portal for datepicker on mobile in favor of popup view card from bottom like all other popovers/modals on mobile
This commit is contained in:
mgabdev 2020-05-15 16:56:11 -04:00
parent 94439dc86d
commit dd633ebf7e

View File

@ -61,7 +61,6 @@ class DatePickerPopover extends PureComponent {
const { date, isPro, isXS } = this.props
const datePickerDisabled = !isPro
const withPortal = isMobile(window.innerWidth)
return (
<PopoverLayout width={331} isXS={isXS}>
@ -79,7 +78,6 @@ class DatePickerPopover extends PureComponent {
dateFormat='MMM d, yyyy h:mm aa'
disabled={datePickerDisabled}
showTimeSelect
withPortal={withPortal}
popperModifiers={{
offset: {
enabled: true,