hensei-web/pages/new/index.tsx
Justin Edmund 953cd01f49 Fix unauth party creation
There was a bug where unauth users could not add more than one item to a grid before it went read-only. This fixes that bug and ensures that permissions are set properly so no one can edit other people's grids.
2022-03-01 00:19:35 -08:00

17 lines
No EOL
400 B
TypeScript

import React from 'react'
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">
<Party new={true} pushHistory={callback} />
</div>
)
}
export default NewRoute