Skip to content

Commit

Permalink
Merge pull request #33835 from pasyukevich/bugfix/popover-migration-r…
Browse files Browse the repository at this point in the history
…egression

[TS migration] Follow-up: add default props from modal to PopoverWith…
  • Loading branch information
mountiny authored Jan 4, 2024
2 parents d800d60 + 6173899 commit 6e5a5a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/PopoverWithMeasuredContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ function PopoverWithMeasuredContent({
},
children,
withoutOverlay = false,
fullscreen = true,
shouldCloseOnOutsideClick = false,
shouldSetModalVisibility = true,
statusBarTranslucent = true,
avoidKeyboard = false,
hideModalContentWhileAnimating = false,
...props
}: PopoverWithMeasuredContentProps) {
const styles = useThemeStyles();
Expand Down Expand Up @@ -115,6 +121,12 @@ function PopoverWithMeasuredContent({
anchorAlignment={anchorAlignment}
isVisible={isVisible}
withoutOverlay={withoutOverlay}
fullscreen={fullscreen}
shouldCloseOnOutsideClick={shouldCloseOnOutsideClick}
shouldSetModalVisibility={shouldSetModalVisibility}
statusBarTranslucent={statusBarTranslucent}
avoidKeyboard={avoidKeyboard}
hideModalContentWhileAnimating={hideModalContentWhileAnimating}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
anchorPosition={shiftedAnchorPosition}
Expand Down

0 comments on commit 6e5a5a2

Please sign in to comment.