From 09ad6a3fe034cf616d253dcd4bdd9812bd995d5b Mon Sep 17 00:00:00 2001
From: mantikoros
Date: Wed, 15 Dec 2021 22:10:14 -0600
Subject: [PATCH] test
---
web/pages/[username]/[contractId].tsx | 57 ++++++++++++++-------------
web/pages/_document.tsx | 5 ++-
2 files changed, 32 insertions(+), 30 deletions(-)
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
-
+ */}