From 5c396b325332533890d417c3313be8a26cb8fdd6 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Fri, 2 Sep 2022 07:32:35 +0100 Subject: [PATCH] Add ids to title on multiplayer rooms --- apps/www/pages/r/[id].tsx | 10 +++++++++- apps/www/pages/v/[id].tsx | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/www/pages/r/[id].tsx b/apps/www/pages/r/[id].tsx index a7c94ec66..7f582cfa0 100644 --- a/apps/www/pages/r/[id].tsx +++ b/apps/www/pages/r/[id].tsx @@ -1,5 +1,6 @@ import type { GetServerSideProps } from 'next' import dynamic from 'next/dynamic' +import Head from 'next/head' import * as React from 'react' const IFrameWarning = dynamic(() => import('~components/IFrameWarning'), { @@ -19,7 +20,14 @@ export default function Room({ id }: RoomProps) { return } - return + return ( + <> + + tldraw - {id} + + + + ) } export const getServerSideProps: GetServerSideProps = async (context) => { diff --git a/apps/www/pages/v/[id].tsx b/apps/www/pages/v/[id].tsx index 532d3fc0b..e6bca2776 100644 --- a/apps/www/pages/v/[id].tsx +++ b/apps/www/pages/v/[id].tsx @@ -1,6 +1,7 @@ import { Utils } from '@tldraw/core' import type { GetServerSideProps } from 'next' import dynamic from 'next/dynamic' +import Head from 'next/head' import * as React from 'react' const IFrameWarning = dynamic(() => import('~components/IFrameWarning'), { @@ -20,7 +21,14 @@ export default function Room({ id }: RoomProps) { return } - return + return ( + <> + + tldraw - {id} (read only) + + + + ) } export const getServerSideProps: GetServerSideProps = async (context) => {