diff --git a/web/pages/[username]/[contractId].tsx b/web/pages/[username]/[contractId].tsx index fc6b16ae..eeb73e08 100644 --- a/web/pages/[username]/[contractId].tsx +++ b/web/pages/[username]/[contractId].tsx @@ -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
@@ -53,7 +52,7 @@ export default function ContractPage({ contract }: { contract: Contract }) { const isCreator = user?.id === creatorId return ( - + <> {contract.question} @@ -71,33 +70,35 @@ export default function ContractPage({ contract }: { contract: Contract }) { /> -
+ +
- - + + - {!isResolved && ( - <> -
+ {!isResolved && ( + <> +
- - + + - {isCreator && ( - - )} - - - )} + {isCreator && ( + + )} + + + )} + - + ) } diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index 6acd76c0..3908b1ae 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -3,7 +3,8 @@ import { Html, Head, Main, NextScript } from 'next/document' export default function Document() { return ( - + + {/* Mantic Markets - + */}