diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx index 35b8f14b..e2b9f2f2 100644 --- a/web/components/contracts-list.tsx +++ b/web/components/contracts-list.tsx @@ -1,3 +1,4 @@ +import dayjs from 'dayjs' import Link from 'next/link' import { useEffect, useState } from 'react' import { useUser } from '../hooks/use-user' @@ -18,26 +19,24 @@ function ContractCard(props: { contract: Contract }) { return (
  • - +
    -

    +

    {contract.question}

    - -
    +
    {/*
    -

    +

    {contract.id}

    +

    {contract.description}

    */} - -
    +

    - Created on{' '}

    @@ -75,8 +74,8 @@ export function ContractsList(props: {}) { }, [creator]) return ( -
    -
      +
      +
        {contracts.map((contract) => ( ))} diff --git a/web/pages/account.tsx b/web/pages/account.tsx index 82d2c801..4019c33e 100644 --- a/web/pages/account.tsx +++ b/web/pages/account.tsx @@ -5,16 +5,17 @@ import { useState, useEffect } from 'react' import { Contract, listContracts } from '../lib/firebase/contracts' import { ContractsList } from '../components/contracts-list' import { Title } from '../components/title' +import { Row } from '../components/layout/row' function UserCard(props: { user: User }) { const { user } = props return ( -
        -
        + +
        {user?.avatarUrl && ( - + )} -
        +

        {user?.name}

        {user?.email}

        @@ -28,19 +29,19 @@ function UserCard(props: { user: User }) {
      -
    + ) } function SignInCard() { return (
    -
    +
    -
    +

    Welcome!

    Sign in to get started

    @@ -70,11 +71,11 @@ export default function Account() { return (
    -
    +
    {user ? (
    - + <Title className="px-2" text="Your markets" /> <ContractsList contracts={contracts} /> </div> ) : (