hensei-web/pages/new/index.tsx
Justin Edmund 102be62a7f Hacky first pass at titles
Hacky because the titles for some pages don't load until the data comes in, which takes a second. There's gotta be a better way.
2022-03-04 05:54:16 -08:00

21 lines
No EOL
508 B
TypeScript

import React from 'react'
import Head from 'next/head'
import Party from '~components/Party'
const NewRoute = () => {
function callback(path: string) {
// This is scuffed, how do we do this natively?
window.history.replaceState(null, `Grid Tool`, `${path}`)
}
return (
<div id="Content">
<Head>
<title>New Team</title>
</Head>
<Party new={true} pushHistory={callback} />
</div>
)
}
export default NewRoute