diff --git a/web/components/sell-button.tsx b/web/components/sell-button.tsx
deleted file mode 100644
index 51c88442..00000000
--- a/web/components/sell-button.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { BinaryContract, PseudoNumericContract } from 'common/contract'
-import { User } from 'common/user'
-import { useUserContractBets } from 'web/hooks/use-user-bets'
-import { useState } from 'react'
-import { Col } from './layout/col'
-import clsx from 'clsx'
-import { SellSharesModal } from './sell-modal'
-
-export function SellButton(props: {
- contract: BinaryContract | PseudoNumericContract
- user: User | null | undefined
- sharesOutcome: 'YES' | 'NO' | undefined
- shares: number
- panelClassName?: string
-}) {
- const { contract, user, sharesOutcome, shares, panelClassName } = props
- const userBets = useUserContractBets(user?.id, contract.id)
- const [showSellModal, setShowSellModal] = useState(false)
- const { mechanism, outcomeType } = contract
- const isPseudoNumeric = outcomeType === 'PSEUDO_NUMERIC'
-
- if (sharesOutcome && user && mechanism === 'cpmm-1') {
- return (
-
-
-
- {'(' + Math.floor(shares) + ' shares)'}
-
- {showSellModal && (
-
- )}
-
- )
- }
- return
-}
diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx
index e722547c..b1380bfe 100644
--- a/web/components/user-page.tsx
+++ b/web/components/user-page.tsx
@@ -95,7 +95,7 @@ export function UserPage(props: { user: User }) {
)}
-
+
{user.name}
diff --git a/web/components/yes-no-selector.tsx b/web/components/yes-no-selector.tsx
index 69bf47f0..e38faeb4 100644
--- a/web/components/yes-no-selector.tsx
+++ b/web/components/yes-no-selector.tsx
@@ -101,7 +101,7 @@ export function YesNoCancelSelector(props: {
@@ -109,7 +109,7 @@ export function YesNoCancelSelector(props: {
diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx
index da66fc8a..3d894500 100644
--- a/web/pages/[username]/[contractSlug].tsx
+++ b/web/pages/[username]/[contractSlug].tsx
@@ -248,10 +248,10 @@ export function ContractPageContent(
ogCardProps={ogCardProps}
/>
)}
-
+
{backToHome && (
-
setOpen(!open)}
- className={clsx(
- 'btn btn-link capitalize-none my-3 normal-case text-indigo-700',
- hideExpander && 'invisible'
- )}
+ className={clsx('my-3', hideExpander && 'invisible')}
>
{open ? 'Hide' : 'Read more'}
-
+
>
)
}
@@ -175,7 +174,7 @@ function DonationBox(props: {
const [isSubmitting, setIsSubmitting] = useState(false)
const [error, setError] = useState
()
- const donateDisabled = isSubmitting || !amount || error
+ const donateDisabled = isSubmitting || !amount || !!error
const onSubmit: React.FormEventHandler = async (e) => {
if (!user || donateDisabled) return
@@ -230,16 +229,15 @@ function DonationBox(props: {
{user && (
-
Donate
-
+
)}
diff --git a/web/pages/create.tsx b/web/pages/create.tsx
index ca6c5ffe..47169c29 100644
--- a/web/pages/create.tsx
+++ b/web/pages/create.tsx
@@ -1,6 +1,5 @@
import router, { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
-import clsx from 'clsx'
import dayjs from 'dayjs'
import { Spacer } from 'web/components/layout/spacer'
import { getUserAndPrivateUser } from 'web/lib/firebase/users'
@@ -519,20 +518,18 @@ export function NewContract(props: {
)}
-