From 2b1a523973095ba9587f0165d2fe2f0687ee72eb Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 5 Jan 2022 17:21:30 -0800 Subject: [PATCH] Move popover --- src/SelectInput.jsx | 2 +- src/UserMenu.jsx | 2 +- src/{ => popover}/Popover.jsx | 0 src/{ => popover}/Popover.module.css | 0 src/{ => popover}/PopoverMenu.jsx | 0 src/{ => popover}/PopoverMenu.module.css | 0 src/room/GridLayoutMenu.jsx | 2 +- src/room/OverflowMenu.jsx | 2 +- 8 files changed, 4 insertions(+), 4 deletions(-) rename src/{ => popover}/Popover.jsx (100%) rename src/{ => popover}/Popover.module.css (100%) rename src/{ => popover}/PopoverMenu.jsx (100%) rename src/{ => popover}/PopoverMenu.module.css (100%) diff --git a/src/SelectInput.jsx b/src/SelectInput.jsx index 1e54ec1..3f990b7 100644 --- a/src/SelectInput.jsx +++ b/src/SelectInput.jsx @@ -2,7 +2,7 @@ import React, { useRef } from "react"; import { HiddenSelect, useSelect } from "@react-aria/select"; import { useButton } from "@react-aria/button"; import { useSelectState } from "@react-stately/select"; -import { Popover } from "./Popover"; +import { Popover } from "./popover/Popover"; import { ListBox } from "./ListBox"; import styles from "./SelectInput.module.css"; import classNames from "classnames"; diff --git a/src/UserMenu.jsx b/src/UserMenu.jsx index d1d9a5a..8e83ca9 100644 --- a/src/UserMenu.jsx +++ b/src/UserMenu.jsx @@ -1,7 +1,7 @@ import React, { useMemo } from "react"; import { Item } from "@react-stately/collections"; import { Button, LinkButton } from "./button"; -import { PopoverMenuTrigger } from "./PopoverMenu"; +import { PopoverMenuTrigger } from "./popover/PopoverMenu"; import { Menu } from "./Menu"; import { Tooltip, TooltipTrigger } from "./Tooltip"; import { Avatar } from "./Avatar"; diff --git a/src/Popover.jsx b/src/popover/Popover.jsx similarity index 100% rename from src/Popover.jsx rename to src/popover/Popover.jsx diff --git a/src/Popover.module.css b/src/popover/Popover.module.css similarity index 100% rename from src/Popover.module.css rename to src/popover/Popover.module.css diff --git a/src/PopoverMenu.jsx b/src/popover/PopoverMenu.jsx similarity index 100% rename from src/PopoverMenu.jsx rename to src/popover/PopoverMenu.jsx diff --git a/src/PopoverMenu.module.css b/src/popover/PopoverMenu.module.css similarity index 100% rename from src/PopoverMenu.module.css rename to src/popover/PopoverMenu.module.css diff --git a/src/room/GridLayoutMenu.jsx b/src/room/GridLayoutMenu.jsx index 46c2e90..f003712 100644 --- a/src/room/GridLayoutMenu.jsx +++ b/src/room/GridLayoutMenu.jsx @@ -1,6 +1,6 @@ import React from "react"; import { Button } from "../button"; -import { PopoverMenuTrigger } from "../PopoverMenu"; +import { PopoverMenuTrigger } from "../popover/PopoverMenu"; import { ReactComponent as SpotlightIcon } from "../icons/Spotlight.svg"; import { ReactComponent as FreedomIcon } from "../icons/Freedom.svg"; import { ReactComponent as CheckIcon } from "../icons/Check.svg"; diff --git a/src/room/OverflowMenu.jsx b/src/room/OverflowMenu.jsx index 79c3532..ec0045a 100644 --- a/src/room/OverflowMenu.jsx +++ b/src/room/OverflowMenu.jsx @@ -1,7 +1,7 @@ import React, { useCallback } from "react"; import { Button } from "../button"; import { Menu } from "../Menu"; -import { PopoverMenuTrigger } from "../PopoverMenu"; +import { PopoverMenuTrigger } from "../popover/PopoverMenu"; import { Item } from "@react-stately/collections"; import { ReactComponent as SettingsIcon } from "../icons/Settings.svg"; import { ReactComponent as AddUserIcon } from "../icons/AddUser.svg";