Revert "Yarn upgrade"

This commit is contained in:
David Baker 2023-02-02 14:32:44 +00:00 committed by GitHub
parent e3b4a695d6
commit 579b91abff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2970 additions and 2637 deletions

View file

@ -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<T> extends AriaMenuOptions<T> {
className?: string;
className?: String;
onClose?: () => void;
onAction: (value: Key) => void;
label?: string;
children: ReactNode;
}
export function Menu<T extends object>({
@ -39,11 +38,7 @@ export function Menu<T extends object>({
label,
...rest
}: MenuProps<T>) {
const state = useTreeState<T>({
...rest,
selectionMode: "none",
children: undefined,
});
const state = useTreeState<T>({ ...rest, selectionMode: "none" });
const menuRef = useRef();
const { menuProps } = useMenu<T>(rest, state, menuRef);

View file

@ -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;

View file

@ -30,5 +30,5 @@ export function PTTFeed({
}) {
const { isLocal, stream } = useCallFeed(callFeed);
const mediaRef = useMediaStream(stream, audioOutputDevice, isLocal);
return <audio ref={mediaRef} className={styles.audioFeed} />;
return <audio ref={mediaRef} className={styles.audioFeed} playsInline />;
}

5590
yarn.lock

File diff suppressed because it is too large Load diff