diff --git a/web/pages/[username]/[contractId].tsx b/web/pages/[username]/[contractId].tsx index e5a2ca56..2e93a4cc 100644 --- a/web/pages/[username]/[contractId].tsx +++ b/web/pages/[username]/[contractId].tsx @@ -13,8 +13,8 @@ import { ResolutionPanel } from '../../components/resolution-panel' import { Contract, getContract } from '../../lib/firebase/contracts' export async function getServerSideProps({ params }: { params: any }) { - console.log('params', params) const contract = await getContract(params.contractId) + // console.log('params', params, 'contract', contract) return { props: { @@ -54,10 +54,9 @@ export default function ContractPage({ contract }: { contract: Contract }) { const isCreator = false return ( - <> + - {contract.question} - + {contract.question} | Mantic Markets - -
+
- - + + - {!isResolved && ( - <> -
+ {!isResolved && ( + <> +
- - + + - {isCreator && user && ( - - )} - - - )} - + {isCreator && user && ( + + )} + + + )} - + ) } diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index 8e5360d9..8d121566 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -1,8 +1,41 @@ import 'tailwindcss/tailwind.css' import type { AppProps } from 'next/app' +import Head from 'next/head' function MyApp({ Component, pageProps }: AppProps) { - return + return ( + <> + + Mantic Markets + + + + + + + + + + + + + ) } export default MyApp diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index 3908b1ae..d2ccc8e7 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -3,34 +3,7 @@ import { Html, Head, Main, NextScript } from 'next/document' export default function Document() { return ( - - {/* - Mantic Markets - - - - - - - - - + @@ -58,7 +31,8 @@ export default function Document() { `, }} /> - */} + +