Merge branch 'main' of https://github.com/manticmarkets/mantic
This commit is contained in:
commit
615d5874b3
|
@ -24,10 +24,15 @@ export function ContractCard(props: {
|
||||||
const { probPercent } = contractMetrics(contract)
|
const { probPercent } = contractMetrics(contract)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div
|
||||||
|
className={clsx(
|
||||||
|
'bg-white hover:bg-gray-100 shadow-md rounded-lg p-6 relative',
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
<Link href={contractPath(contract)}>
|
<Link href={contractPath(contract)}>
|
||||||
<a>
|
<a className="absolute left-0 right-0 top-0 bottom-0" />
|
||||||
<div className="bg-white hover:bg-gray-100 shadow-md rounded-lg p-6">
|
</Link>
|
||||||
<Row className="justify-between gap-4 mb-2">
|
<Row className="justify-between gap-4 mb-2">
|
||||||
<p className="font-medium text-indigo-700">{question}</p>
|
<p className="font-medium text-indigo-700">{question}</p>
|
||||||
<ResolutionOrChance
|
<ResolutionOrChance
|
||||||
|
@ -36,13 +41,7 @@ export function ContractCard(props: {
|
||||||
probPercent={probPercent}
|
probPercent={probPercent}
|
||||||
/>
|
/>
|
||||||
</Row>
|
</Row>
|
||||||
<AbbrContractDetails
|
<AbbrContractDetails contract={contract} showHotVolume={showHotVolume} />
|
||||||
contract={contract}
|
|
||||||
showHotVolume={showHotVolume}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import clsx from 'clsx'
|
||||||
import { firebaseLogout, User } from '../lib/firebase/users'
|
import { firebaseLogout, User } from '../lib/firebase/users'
|
||||||
import { CreatorContractsList } from './contracts-list'
|
import { CreatorContractsList } from './contracts-list'
|
||||||
import { Title } from './title'
|
import { Title } from './title'
|
||||||
|
@ -16,7 +17,7 @@ export function UserLink(props: {
|
||||||
const { name, username, showUsername, className } = props
|
const { name, username, showUsername, className } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SiteLink href={`/${username}`} className={className}>
|
<SiteLink href={`/${username}`} className={clsx('z-10', className)}>
|
||||||
{name}
|
{name}
|
||||||
{showUsername && ` (@${username})`}
|
{showUsername && ` (@${username})`}
|
||||||
</SiteLink>
|
</SiteLink>
|
||||||
|
|
|
@ -82,7 +82,7 @@ export function ActivityFeed(props: {
|
||||||
<Title text="Recent Activity" />
|
<Title text="Recent Activity" />
|
||||||
<Col className="w-full bg-white self-center divide-gray-300 divide-y">
|
<Col className="w-full bg-white self-center divide-gray-300 divide-y">
|
||||||
{activeContracts.map((contract, i) => (
|
{activeContracts.map((contract, i) => (
|
||||||
<div className="py-6 px-2 sm:px-4">
|
<div key={contract.id} className="py-6 px-2 sm:px-4">
|
||||||
<ContractFeed
|
<ContractFeed
|
||||||
contract={contract}
|
contract={contract}
|
||||||
bets={contractBets[i]}
|
bets={contractBets[i]}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user