mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
get initial doesn't work with global one
This commit is contained in:
parent
5eac444849
commit
b6687110bd
@ -6,6 +6,7 @@ import {FormPage} from 'components/form/page'
|
||||
import {LoadingPage} from 'components/loading.page'
|
||||
import {FORM_QUERY, FormQueryData, FormQueryVariables} from 'graphql/query/form.query'
|
||||
import {NextPage} from 'next'
|
||||
import {useRouter} from 'next/router'
|
||||
import React, {useState} from 'react'
|
||||
import Swiper from 'react-id-swiper'
|
||||
import {ReactIdSwiperProps} from 'react-id-swiper/lib/types'
|
||||
@ -16,7 +17,9 @@ interface Props {
|
||||
id: string
|
||||
}
|
||||
|
||||
const Index: NextPage<Props> = ({id}) => {
|
||||
const Index: NextPage<Props> = () => {
|
||||
const router = useRouter()
|
||||
const id = router.query.id as string
|
||||
const [swiper, setSwiper] = useState<OriginalSwiper.default>(null)
|
||||
const submission = useSubmission(id)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user