room url copy button for ics

This commit is contained in:
Igor Loskutov
2025-09-16 16:52:12 -04:00
parent 88fe0e051d
commit f4d59a4af8
5 changed files with 101 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ import { Flex, Link, Button, Text, HStack } from "@chakra-ui/react";
import NextLink from "next/link";
import Image from "next/image";
import { useRouter } from "next/navigation";
import { roomUrl } from "../lib/routes";
interface MeetingMinimalHeaderProps {
roomName: string;
@@ -30,7 +31,7 @@ export default function MeetingMinimalHeader({
if (onLeave) {
onLeave();
} else {
router.push(`/${roomName}`);
router.push(roomUrl(roomName));
}
};