Rename [slug] to [party]
Less ambiguous
This commit is contained in:
parent
887b7db197
commit
09c543a089
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ interface Props {
|
||||||
|
|
||||||
const PartyRoute: React.FC = () => {
|
const PartyRoute: React.FC = () => {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const { slug } = router.query
|
const { party: slug } = router.query
|
||||||
|
|
||||||
const { setEditable: setEditableContext } = useContext(AppContext)
|
const { setEditable: setEditableContext } = useContext(AppContext)
|
||||||
|
|
||||||
|
|
@ -113,7 +113,7 @@ const PartyRoute: React.FC = () => {
|
||||||
|
|
||||||
const shortcode: string = slug as string
|
const shortcode: string = slug as string
|
||||||
fetchGrid(shortcode)
|
fetchGrid(shortcode)
|
||||||
}, [slug, cookies.user])
|
}, [slug, cookies.user, setEditableContext])
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
return (
|
return (
|
||||||
Loading…
Reference in a new issue