Move NewRoute to a Next.js page
This commit is contained in:
parent
86432df4f5
commit
f9874c270e
1 changed files with 22 additions and 0 deletions
22
pages/new/index.tsx
Normal file
22
pages/new/index.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import React from 'react'
|
||||
import Party from '~components/Party'
|
||||
|
||||
const NewRoute: React.FC = () => {
|
||||
function callback(path: string) {
|
||||
// This is scuffed, how do we do this natively?
|
||||
window.history.replaceState(null, `Grid Tool`, `${path}`)
|
||||
}
|
||||
|
||||
return (
|
||||
<div id="Content">
|
||||
<Party
|
||||
editable={true}
|
||||
extra={false}
|
||||
exists={false}
|
||||
pushHistory={callback}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default NewRoute
|
||||
Loading…
Reference in a new issue