Skip to content

Commit

Permalink
sweeps resolution disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros committed Sep 24, 2024
1 parent 20718e8 commit 4771d44
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions web/components/contract/contract-description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { PencilIcon, PlusIcon } from '@heroicons/react/solid'
import { JSONContent } from '@tiptap/core'
import { updateMarket } from 'web/lib/api/api'
import { toast } from 'react-hot-toast'
import { LogoIcon } from '../icons/logo-icon'

export function ContractDescription(props: {
contract: Contract
Expand All @@ -23,11 +24,6 @@ export function ContractDescription(props: {

return (
<>
{contract.token === 'CASH' && (
<div className="text-ink-900 font-semibold">
This market is managed and resolved by Manifold.
</div>
)}
<div className="mt-6">
{isCreator || isAdmin ? (
<EditableDescription contract={contract} description={description} />
Expand All @@ -38,6 +34,13 @@ export function ContractDescription(props: {
hideCollapse={!user}
/>
)}
{contract.token === 'CASH' && (
<div className="text-ink-600 flex items-center justify-center space-x-2 rounded-md bg-gray-50 px-4 py-2 italic">
<LogoIcon className="h-5 w-5 text-indigo-600" />
<span>This question is managed and resolved by Manifold.</span>
<LogoIcon className="h-5 w-5 text-indigo-600" />
</div>
)}
</div>
</>
)
Expand Down

0 comments on commit 4771d44

Please sign in to comment.