test
This commit is contained in:
parent
3691ef81ed
commit
09ad6a3fe0
|
@ -31,11 +31,10 @@ export async function getServerSideProps({ params }: { params: any }) {
|
|||
// }
|
||||
|
||||
export default function ContractPage({ contract }: { contract: Contract }) {
|
||||
const user = useUser()
|
||||
|
||||
const router = useRouter()
|
||||
const { contractId } = router.query as { contractId: string }
|
||||
const user = null // useUser()
|
||||
|
||||
// const router = useRouter()
|
||||
// const { contractId } = router.query as { contractId: string }
|
||||
// const contract = useContract(contractId)
|
||||
// if (contract === 'loading') {
|
||||
// return <div />
|
||||
|
@ -53,7 +52,7 @@ export default function ContractPage({ contract }: { contract: Contract }) {
|
|||
const isCreator = user?.id === creatorId
|
||||
|
||||
return (
|
||||
<Col className="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<>
|
||||
<Head>
|
||||
<title>{contract.question}</title>
|
||||
|
||||
|
@ -71,6 +70,7 @@ export default function ContractPage({ contract }: { contract: Contract }) {
|
|||
/>
|
||||
</Head>
|
||||
|
||||
<Col className="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<Header />
|
||||
|
||||
<Col
|
||||
|
@ -99,5 +99,6 @@ export default function ContractPage({ contract }: { contract: Contract }) {
|
|||
)}
|
||||
</Col>
|
||||
</Col>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -3,7 +3,8 @@ import { Html, Head, Main, NextScript } from 'next/document'
|
|||
export default function Document() {
|
||||
return (
|
||||
<Html data-theme="mantic" className="min-h-screen">
|
||||
<Head>
|
||||
<Head />
|
||||
{/* <Head>
|
||||
<title>Mantic Markets</title>
|
||||
|
||||
<meta
|
||||
|
@ -57,7 +58,7 @@ export default function Document() {
|
|||
`,
|
||||
}}
|
||||
/>
|
||||
</Head>
|
||||
</Head> */}
|
||||
<body className="min-h-screen font-readex-pro bg-base-200">
|
||||
<Main />
|
||||
<NextScript />
|
||||
|
|
Loading…
Reference in New Issue
Block a user