Selaa lähdekoodia

Update index.tsx

main
Steve Ruiz 3 vuotta sitten
vanhempi
commit
dce466f6fd
1 muutettua tiedostoa jossa 2 lisäystä ja 9 poistoa
  1. 2
    9
      www/pages/r/index.tsx

+ 2
- 9
www/pages/r/index.tsx Näytä tiedosto

@@ -2,17 +2,12 @@ import * as React from 'react'
2 2
 import type { GetServerSideProps } from 'next'
3 3
 import Head from 'next/head'
4 4
 
5
-interface RoomProps {
6
-  id?: string
7
-}
8
-
9
-export default function RandomRoomPage({ id }: RoomProps): JSX.Element {
5
+export default function RandomRoomPage(): JSX.Element {
10 6
   return (
11 7
     <>
12 8
       <Head>
13 9
         <title>tldraw</title>
14 10
       </Head>
15
-      <div>Should have routed to room: {id}</div>
16 11
     </>
17 12
   )
18 13
 }
@@ -27,8 +22,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
27 22
 
28 23
   // Return id (though it shouldn't matter)
29 24
   return {
30
-    props: {
31
-      id,
32
-    },
25
+    props: {},
33 26
   }
34 27
 }

Loading…
Peruuta
Tallenna