Show prob of FR answer as a bar chart (#200)
This commit is contained in:
parent
25d3fbcc5f
commit
e0d266887c
|
@ -948,6 +948,12 @@ function FeedAnswerGroup(props: {
|
|||
/>
|
||||
</Modal>
|
||||
|
||||
{type == 'answer' && (
|
||||
<div
|
||||
className="absolute -m-3 h-full rounded-tl-md bg-green-600 bg-opacity-10"
|
||||
style={{ width: `${100 * Math.max(prob, 0.01)}%` }}
|
||||
></div>
|
||||
)}
|
||||
<Row className="my-4 gap-3">
|
||||
<div className="px-1">
|
||||
<Avatar username={username} avatarUrl={avatarUrl} />
|
||||
|
@ -980,9 +986,7 @@ function FeedAnswerGroup(props: {
|
|||
<span
|
||||
className={clsx(
|
||||
'text-2xl',
|
||||
tradingAllowed(contract)
|
||||
? 'text-green-500'
|
||||
: 'text-gray-500'
|
||||
tradingAllowed(contract) ? 'text-primary' : 'text-gray-500'
|
||||
)}
|
||||
>
|
||||
{probPercent}
|
||||
|
|
Loading…
Reference in New Issue
Block a user