From 579b91abff82da1953383407f4b2781ea45f13b4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Feb 2023 14:32:44 +0000 Subject: [PATCH] Revert "Yarn upgrade" --- src/Menu.tsx | 11 +- src/Modal.tsx | 4 +- src/room/PTTFeed.tsx | 2 +- yarn.lock | 5590 ++++++++++++++++++++++-------------------- 4 files changed, 2970 insertions(+), 2637 deletions(-) diff --git a/src/Menu.tsx b/src/Menu.tsx index 93b8822..0a995af 100644 --- a/src/Menu.tsx +++ b/src/Menu.tsx @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import React, { Key, ReactNode, useRef, useState } from "react"; +import React, { Key, useRef, useState } from "react"; import { AriaMenuOptions, useMenu, useMenuItem } from "@react-aria/menu"; import { TreeState, useTreeState } from "@react-stately/tree"; import { mergeProps } from "@react-aria/utils"; @@ -25,11 +25,10 @@ import { Node } from "@react-types/shared"; import styles from "./Menu.module.css"; interface MenuProps extends AriaMenuOptions { - className?: string; + className?: String; onClose?: () => void; onAction: (value: Key) => void; label?: string; - children: ReactNode; } export function Menu({ @@ -39,11 +38,7 @@ export function Menu({ label, ...rest }: MenuProps) { - const state = useTreeState({ - ...rest, - selectionMode: "none", - children: undefined, - }); + const state = useTreeState({ ...rest, selectionMode: "none" }); const menuRef = useRef(); const { menuProps } = useMenu(rest, state, menuRef); diff --git a/src/Modal.tsx b/src/Modal.tsx index 7cb7e59..2665e11 100644 --- a/src/Modal.tsx +++ b/src/Modal.tsx @@ -32,13 +32,13 @@ import { useDialog } from "@react-aria/dialog"; import { FocusScope } from "@react-aria/focus"; import { ButtonAria, useButton } from "@react-aria/button"; import classNames from "classnames"; -import { SpectrumDialogProps } from "@react-types/dialog"; +import { AriaDialogProps } from "@react-types/dialog"; import { useTranslation } from "react-i18next"; import { ReactComponent as CloseIcon } from "./icons/Close.svg"; import styles from "./Modal.module.css"; -export interface ModalProps extends OverlayProps, SpectrumDialogProps { +export interface ModalProps extends OverlayProps, AriaDialogProps { title: string; children: ReactNode; className?: string; diff --git a/src/room/PTTFeed.tsx b/src/room/PTTFeed.tsx index 389badb..49a40e0 100644 --- a/src/room/PTTFeed.tsx +++ b/src/room/PTTFeed.tsx @@ -30,5 +30,5 @@ export function PTTFeed({ }) { const { isLocal, stream } = useCallFeed(callFeed); const mediaRef = useMediaStream(stream, audioOutputDevice, isLocal); - return