Refactor header
This commit is contained in:
+2
-2
@@ -3,11 +3,11 @@ import { DismissButton, useOverlay } from "@react-aria/overlays";
|
||||
import { FocusScope } from "@react-aria/focus";
|
||||
import classNames from "classnames";
|
||||
import styles from "./Popover.module.css";
|
||||
import { useObjectRef } from "@react-aria/utils";
|
||||
|
||||
export const Popover = forwardRef(
|
||||
({ isOpen = true, onClose, className, children, ...rest }, ref) => {
|
||||
const fallbackRef = useRef();
|
||||
const popoverRef = ref || fallbackRef;
|
||||
const popoverRef = useObjectRef(ref);
|
||||
|
||||
const { overlayProps } = useOverlay(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user