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