diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx
index 438eb3ec..9f9c0936 100644
--- a/web/components/contract/contract-details.tsx
+++ b/web/components/contract/contract-details.tsx
@@ -23,6 +23,7 @@ import { Bet } from 'common/bet'
import NewContractBadge from '../new-contract-badge'
import { CATEGORY_LIST } from 'common/categories'
import { TagsList } from '../tags-list'
+import { UserFollowButton } from '../follow-button'
export function MiscDetails(props: {
contract: Contract
@@ -103,7 +104,7 @@ export function ContractDetails(props: {
disabled?: boolean
}) {
const { contract, bets, isCreator, disabled } = props
- const { closeTime, creatorName, creatorUsername } = contract
+ const { closeTime, creatorName, creatorUsername, creatorId } = contract
const { volumeLabel, resolvedDate } = contractMetrics(contract)
return (
@@ -124,6 +125,7 @@ export function ContractDetails(props: {
username={creatorUsername}
/>
)}
+ {!disabled && }
{(!!closeTime || !!resolvedDate) && (
diff --git a/web/components/follow-button.tsx b/web/components/follow-button.tsx
index f7acf7a9..a5214775 100644
--- a/web/components/follow-button.tsx
+++ b/web/components/follow-button.tsx
@@ -1,19 +1,27 @@
import clsx from 'clsx'
+import { useFollows } from 'web/hooks/use-follows'
import { useUser } from 'web/hooks/use-user'
+import { follow, unfollow } from 'web/lib/firebase/users'
export function FollowButton(props: {
isFollowing: boolean | undefined
onFollow: () => void
onUnfollow: () => void
+ small?: boolean
className?: string
}) {
- const { isFollowing, onFollow, onUnfollow, className } = props
+ const { isFollowing, onFollow, onUnfollow, small, className } = props
const user = useUser()
+ const smallStyle =
+ 'btn !btn-xs border-2 border-gray-600 bg-white normal-case text-gray-600 hover:border-gray-600 hover:bg-white hover:text-gray-600'
+
if (!user || isFollowing === undefined)
return (
-