diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index bb19aad4..93e81393 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -87,19 +87,17 @@ export function ContractCard(props: { const prob = getProb(contract) const color = getColor(contract) - const marketClosed = (contract.closeTime || Infinity) < Date.now() - const showTopBar = prob >= 0.5 || marketClosed return (
- - + +

- + - +

{ + className="peer absolute top-0 left-0 right-0 rounded-tr-lg hover:bg-gray-400 hover:bg-opacity-10" + style={{ height: 'calc(50% + 0.5rem)' }} + onClick={() => { // console.log('e', e) }} >
{contract.createdTime % 3 == 0 ? ( ) : ( - + )}
@@ -169,15 +168,16 @@ export function ContractCard(props: {
{ + className="peer absolute bottom-0 left-0 right-0 rounded-br-lg hover:bg-gray-400 hover:bg-opacity-10" + style={{ height: 'calc(50% - 0.5rem)' }} + onClick={() => { // console.log('e2', e) }} >
{contract.createdTime % 3 == 2 ? ( @@ -249,7 +249,7 @@ function FreeResponseTopAnswer(props: { truncate: 'short' | 'long' | 'none' className?: string }) { - const { contract, truncate, className } = props + const { contract, truncate } = props const { resolution } = contract const topAnswer = getTopAnswer(contract)