From 318e22b97ddc9e858e61768a59259a0aa9269cf8 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 15 Dec 2021 22:52:07 -0600 Subject: [PATCH] test --- web/pages/[username]/[contractId].tsx | 55 +++++++++++++-------------- web/pages/_app.tsx | 35 ++++++++++++++++- web/pages/_document.tsx | 32 ++-------------- 3 files changed, 63 insertions(+), 59 deletions(-) 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() { `, }} /> - */} + +