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