UI tweaks
This commit is contained in:
parent
76dc277024
commit
f56c14cac5
|
@ -103,10 +103,8 @@ function FeedBet(props: { activityItem: any }) {
|
||||||
</div>
|
</div>
|
||||||
<div className="min-w-0 flex-1 py-1.5">
|
<div className="min-w-0 flex-1 py-1.5">
|
||||||
<div className="text-sm text-gray-500">
|
<div className="text-sm text-gray-500">
|
||||||
<span className="text-gray-900">
|
<span>{isCreator ? 'You' : 'A trader'}</span> placed{' '}
|
||||||
{isCreator ? 'You' : 'A trader'}
|
{formatMoney(amount)} on <OutcomeLabel outcome={outcome} />{' '}
|
||||||
</span>{' '}
|
|
||||||
placed {formatMoney(amount)} on <OutcomeLabel outcome={outcome} />{' '}
|
|
||||||
<Timestamp time={createdTime} />
|
<Timestamp time={createdTime} />
|
||||||
{isCreator && (
|
{isCreator && (
|
||||||
// Allow user to comment in an textarea if they are the creator
|
// Allow user to comment in an textarea if they are the creator
|
||||||
|
@ -446,8 +444,7 @@ function FeedBetGroup(props: { activityItem: any }) {
|
||||||
</div>
|
</div>
|
||||||
<div className="min-w-0 flex-1 py-1.5">
|
<div className="min-w-0 flex-1 py-1.5">
|
||||||
<div className="text-sm text-gray-500">
|
<div className="text-sm text-gray-500">
|
||||||
<span className="text-gray-900">{traderCount} traders</span> placed{' '}
|
<span>{traderCount} traders</span> placed {yesSpan}
|
||||||
{yesSpan}
|
|
||||||
{yesAmount && noAmount ? ' and ' : ''}
|
{yesAmount && noAmount ? ' and ' : ''}
|
||||||
{noSpan} <Timestamp time={createdTime} />
|
{noSpan} <Timestamp time={createdTime} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -478,7 +475,7 @@ export function ContractFeed(props: {
|
||||||
let comments = useComments(id)
|
let comments = useComments(id)
|
||||||
if (comments === 'loading') comments = []
|
if (comments === 'loading') comments = []
|
||||||
|
|
||||||
const groupWindow = feedType == 'activity' ? DAY_IN_MS : 10 * DAY_IN_MS
|
const groupWindow = feedType == 'activity' ? 10 * DAY_IN_MS : DAY_IN_MS
|
||||||
|
|
||||||
const allItems = [
|
const allItems = [
|
||||||
{ type: 'start', id: 0 },
|
{ type: 'start', id: 0 },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user