diff --git a/components/TempDesignSystem/Popover/index.tsx b/components/TempDesignSystem/Popover/index.tsx index 9d0eb3d29..b1b03f340 100644 --- a/components/TempDesignSystem/Popover/index.tsx +++ b/components/TempDesignSystem/Popover/index.tsx @@ -17,10 +17,9 @@ import styles from "./popover.module.css" export default function Popover({ triggerContent, children, - isNestedPopover = false, ...props }: PopoverProps) { - const setOverflowVisible = useSetOverFlowVisibleOnRA(isNestedPopover) + const setOverflowVisible = useSetOverFlowVisibleOnRA() return ( diff --git a/components/TempDesignSystem/Popover/popover.ts b/components/TempDesignSystem/Popover/popover.ts index 140f70c79..c774ca398 100644 --- a/components/TempDesignSystem/Popover/popover.ts +++ b/components/TempDesignSystem/Popover/popover.ts @@ -3,5 +3,4 @@ import type { PopoverProps as RAPopoverProps } from "react-aria-components" export interface PopoverProps extends Omit { triggerContent: React.ReactNode children: React.ReactNode - isNestedPopover?: boolean } diff --git a/hooks/useSetOverflowVisibleOnRA.ts b/hooks/useSetOverflowVisibleOnRA.ts index 793974cfb..93d9e80fa 100644 --- a/hooks/useSetOverflowVisibleOnRA.ts +++ b/hooks/useSetOverflowVisibleOnRA.ts @@ -1,4 +1,4 @@ -export default function useSetOverflowVisibleOnRA(isNestedInModal: boolean) { +export default function useSetOverflowVisibleOnRA(isNestedInModal?: boolean) { function setOverflowVisible(isOpen: boolean) { if (isOpen) { document.body.style.overflow = "visible"