Update index.tsx
This commit is contained in:
parent
5590362b0a
commit
dce466f6fd
1 changed files with 2 additions and 9 deletions
|
@ -2,17 +2,12 @@ import * as React from 'react'
|
||||||
import type { GetServerSideProps } from 'next'
|
import type { GetServerSideProps } from 'next'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
|
||||||
interface RoomProps {
|
export default function RandomRoomPage(): JSX.Element {
|
||||||
id?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function RandomRoomPage({ id }: RoomProps): JSX.Element {
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>tldraw</title>
|
<title>tldraw</title>
|
||||||
</Head>
|
</Head>
|
||||||
<div>Should have routed to room: {id}</div>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -27,8 +22,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||||
|
|
||||||
// Return id (though it shouldn't matter)
|
// Return id (though it shouldn't matter)
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {},
|
||||||
id,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue