Transition to modals and popovers

This commit is contained in:
Robert Long
2021-12-03 16:42:29 -08:00
parent 742fdab56d
commit f57b520622
19 changed files with 507 additions and 75 deletions

View File

@@ -13,15 +13,17 @@ import { ReactComponent as ScreenshareIcon } from "./icons/Screenshare.svg";
import { ReactComponent as ChevronIcon } from "./icons/Chevron.svg";
import { ReactComponent as UserIcon } from "./icons/User.svg";
import { ReactComponent as CheckIcon } from "./icons/Check.svg";
import { useButton } from "@react-aria/button";
export const RoomButton = forwardRef(
({ on, className, children, ...rest }, ref) => {
const { buttonProps } = useButton(rest, ref);
return (
<button
className={classNames(styles.roomButton, className, {
[styles.on]: on,
})}
{...rest}
{...buttonProps}
ref={ref}
>
{children}
@@ -130,12 +132,13 @@ export function HangupButton({ className, ...rest }) {
export const HeaderButton = forwardRef(
({ on, className, children, ...rest }, ref) => {
const { buttonProps } = useButton(rest, ref);
return (
<button
className={classNames(styles.headerButton, className, {
[styles.on]: on,
})}
{...rest}
{...buttonProps}
ref={ref}
>
{children}