Darken answer text and move classname
This commit is contained in:
parent
424abef5d2
commit
57c0fc106a
|
@ -281,7 +281,6 @@ function getAnswers(
|
||||||
answer,
|
answer,
|
||||||
items: [] as ActivityItem[],
|
items: [] as ActivityItem[],
|
||||||
user,
|
user,
|
||||||
className: 'border-base-200 flex-1 bg-base-200 p-3 rounded-md',
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter((group) => group.answer)
|
.filter((group) => group.answer)
|
||||||
|
|
|
@ -248,10 +248,13 @@ export function CommentInput(props: {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="btn btn-outline btn-sm mt-1"
|
className={clsx(
|
||||||
|
'btn btn-outline btn-sm mt-1',
|
||||||
|
user ? '' : 'text-transform: capitalize'
|
||||||
|
)}
|
||||||
onClick={submitComment}
|
onClick={submitComment}
|
||||||
>
|
>
|
||||||
Comment
|
{user ? 'Comment' : 'Sign in to comment'}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -649,9 +652,9 @@ function FeedAnswerGroup(props: {
|
||||||
contract: FullContract<any, FreeResponse>
|
contract: FullContract<any, FreeResponse>
|
||||||
answer: Answer
|
answer: Answer
|
||||||
items: ActivityItem[]
|
items: ActivityItem[]
|
||||||
className?: string
|
type: string
|
||||||
}) {
|
}) {
|
||||||
const { answer, items, contract, className } = props
|
const { answer, items, contract, type } = props
|
||||||
const { username, avatarUrl, name, text } = answer
|
const { username, avatarUrl, name, text } = answer
|
||||||
|
|
||||||
const prob = getDpmOutcomeProbability(contract.totalShares, answer.id)
|
const prob = getDpmOutcomeProbability(contract.totalShares, answer.id)
|
||||||
|
@ -659,7 +662,13 @@ function FeedAnswerGroup(props: {
|
||||||
const [open, setOpen] = useState(false)
|
const [open, setOpen] = useState(false)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className={className ? className : 'flex-1 gap-2'}>
|
<Col
|
||||||
|
className={
|
||||||
|
type === 'answer'
|
||||||
|
? 'border-base-200 bg-base-200 flex-1 rounded-md p-3'
|
||||||
|
: 'flex-1 gap-2'
|
||||||
|
}
|
||||||
|
>
|
||||||
<Modal open={open} setOpen={setOpen}>
|
<Modal open={open} setOpen={setOpen}>
|
||||||
<AnswerBetPanel
|
<AnswerBetPanel
|
||||||
answer={answer}
|
answer={answer}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export function OutcomeLabel(props: {
|
||||||
contract={contract as FullContract<DPM, FreeResponse>}
|
contract={contract as FullContract<DPM, FreeResponse>}
|
||||||
resolution={outcome}
|
resolution={outcome}
|
||||||
truncate={truncate}
|
truncate={truncate}
|
||||||
answerClassName={'font-bold text-primary'}
|
answerClassName={'font-bold text-base-400'}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user