Skip to content

Commit

Permalink
Add usePortal flag to Modals
Browse files Browse the repository at this point in the history
  • Loading branch information
OtterleyW committed Feb 13, 2020
1 parent 1e290ab commit 944395c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EditListingWizard/EditListingWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ class EditListingWizard extends Component {
isOpen={this.state.showPayoutDetails}
onClose={this.handlePayoutModalClose}
onManageDisableScrolling={onManageDisableScrolling}
usePortal
>
<div className={css.modalPayoutDetailsWrapper}>
<h1 className={css.modalTitle}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class ModalMissingInformation extends Component {
hasSeenMissingInformationReminder: true,
});
}}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
closeButtonMessage={closeButtonMessage}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/ReviewModal/ReviewModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const ReviewModal = props => {
isOpen={isOpen}
onClose={onCloseModal}
onManageDisableScrolling={onManageDisableScrolling}
usePortal
closeButtonMessage={closeButtonMessage}
>
<IconReviewUser className={css.modalIcon} />
Expand Down
2 changes: 2 additions & 0 deletions src/components/Topbar/Topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ class TopbarComponent extends Component {
id="TopbarMobileMenu"
isOpen={isMobileMenuOpen}
onClose={this.handleMobileMenuClose}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
>
{authInProgress ? null : mobileMenu}
Expand All @@ -240,6 +241,7 @@ class TopbarComponent extends Component {
containerClassName={css.modalContainer}
isOpen={isMobileSearchOpen}
onClose={this.handleMobileSearchClose}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
>
<div className={css.searchContainer}>
Expand Down
1 change: 1 addition & 0 deletions src/containers/AuthenticationPage/AuthenticationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export class AuthenticationPageComponent extends Component {
id="AuthenticationPage.tos"
isOpen={this.state.tosModalOpen}
onClose={() => this.setState({ tosModalOpen: false })}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
>
<div className={css.termsWrapper}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
isOpen={false}
onClose={[Function]}
onManageDisableScrolling={[Function]}
usePortal={true}
>
<div>
<h2>
Expand Down
1 change: 1 addition & 0 deletions src/containers/ListingPage/SectionHostMaybe.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const SectionHostMaybe = props => {
contentClassName={css.enquiryModalContent}
isOpen={isEnquiryModalOpen}
onClose={onCloseEnquiryModal}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
>
<EnquiryForm
Expand Down
1 change: 1 addition & 0 deletions src/containers/ListingPage/SectionImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const SectionImages = props => {
lightCloseButton
isOpen={imageCarouselOpen}
onClose={onImageCarouselClose}
usePortal
onManageDisableScrolling={onManageDisableScrolling}
>
<ImageCarousel images={listing.images} />
Expand Down

0 comments on commit 944395c

Please sign in to comment.