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>
|
</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">
|
<Row className="my-4 gap-3">
|
||||||
<div className="px-1">
|
<div className="px-1">
|
||||||
<Avatar username={username} avatarUrl={avatarUrl} />
|
<Avatar username={username} avatarUrl={avatarUrl} />
|
||||||
|
@ -980,9 +986,7 @@ function FeedAnswerGroup(props: {
|
||||||
<span
|
<span
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'text-2xl',
|
'text-2xl',
|
||||||
tradingAllowed(contract)
|
tradingAllowed(contract) ? 'text-primary' : 'text-gray-500'
|
||||||
? 'text-green-500'
|
|
||||||
: 'text-gray-500'
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{probPercent}
|
{probPercent}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user