Styling
This commit is contained in:
parent
94bb9370ae
commit
7fa1d14443
|
@ -48,7 +48,7 @@ const calculateProvenCorrectBadgeRarity = (badge: ProvenCorrectBadge) => {
|
|||
const thresholdArray = provenCorrectRarityThresholds
|
||||
let i = thresholdArray.length - 1
|
||||
while (i >= 0) {
|
||||
if (betAmount == thresholdArray[i]) {
|
||||
if (betAmount >= thresholdArray[i]) {
|
||||
return i + 1
|
||||
}
|
||||
i--
|
||||
|
@ -56,7 +56,7 @@ const calculateProvenCorrectBadgeRarity = (badge: ProvenCorrectBadge) => {
|
|||
return 1
|
||||
}
|
||||
|
||||
export const streakerBadgeRarityThresholds = [1, 25, 100]
|
||||
export const streakerBadgeRarityThresholds = [1, 50, 125]
|
||||
const calculateStreakerBadgeRarity = (badge: StreakerBadge) => {
|
||||
const { totalBettingStreak } = badge.data
|
||||
const thresholdArray = streakerBadgeRarityThresholds
|
||||
|
@ -70,7 +70,7 @@ const calculateStreakerBadgeRarity = (badge: StreakerBadge) => {
|
|||
return 1
|
||||
}
|
||||
|
||||
export const marketMakerBadgeRarityThresholds = [1, 25, 150]
|
||||
export const marketMakerBadgeRarityThresholds = [1, 50, 200]
|
||||
const calculateMarketMakerBadgeRarity = (badge: MarketCreatorBadge) => {
|
||||
const { totalContractsCreated } = badge.data
|
||||
const thresholdArray = marketMakerBadgeRarityThresholds
|
||||
|
|
|
@ -126,22 +126,24 @@ function ProvenCorrectBadgeItem(props: {
|
|||
<SiteLink
|
||||
href={contractPathWithoutContract(contractCreatorUsername, contractSlug)}
|
||||
>
|
||||
<Medal rarity={rarity} />
|
||||
<Tooltip
|
||||
text={`Make a comment attached to a winning bet worth ${betAmount}`}
|
||||
>
|
||||
<span
|
||||
className={
|
||||
rarity === 'gold'
|
||||
? goldClassName
|
||||
: rarity === 'silver'
|
||||
? silverClassName
|
||||
: bronzeClassName
|
||||
}
|
||||
<Col className={'text-center'}>
|
||||
<Medal rarity={rarity} />
|
||||
<Tooltip
|
||||
text={`Make a comment attached to a winning bet worth ${betAmount}`}
|
||||
>
|
||||
Proven Correct
|
||||
</span>
|
||||
</Tooltip>
|
||||
<span
|
||||
className={
|
||||
rarity === 'gold'
|
||||
? goldClassName
|
||||
: rarity === 'silver'
|
||||
? silverClassName
|
||||
: bronzeClassName
|
||||
}
|
||||
>
|
||||
Proven Correct
|
||||
</span>
|
||||
</Tooltip>
|
||||
</Col>
|
||||
</SiteLink>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user