fix(trading): streak render gray fix

This commit is contained in:
Madalina Raicu
2023-12-21 08:40:42 +00:00
parent 50118721aa
commit c91f67e828
2 changed files with 12 additions and 12 deletions
@@ -166,17 +166,17 @@ export const ActivityStreak = ({
'absolute left-0 top-0 h-full rounded-[100px] bg-gradient-to-r',
{
'from-vega-dark-400 to-vega-dark-200':
userTierIndex % 6 === 0,
userTierIndex === 0,
'from-vega-pink-600 to-vega-pink-500':
userTierIndex % 6 === 1,
userTierIndex % 6 === 0 || userTierIndex % 6 === 5,
'from-vega-purple-600 to-vega-purple-500':
userTierIndex % 6 === 2,
userTierIndex % 6 === 1,
'from-vega-blue-600 to-vega-blue-500':
userTierIndex % 6 === 3,
userTierIndex % 6 === 2,
'from-vega-orange-600 to-vega-orange-500':
userTierIndex % 6 === 4,
userTierIndex % 6 === 3,
'from-vega-green-600 to-vega-green-500':
userTierIndex % 6 === 5,
userTierIndex % 6 === 4,
}
)}
style={{ width: safeProgress(index) + '%' }}
@@ -152,17 +152,17 @@ export const RewardHoarderBonus = ({
'absolute left-0 top-0 h-full rounded-[100px] bg-gradient-to-r',
{
'from-vega-dark-400 to-vega-dark-200':
userTierIndex % 6 === 0,
userTierIndex === 0,
'from-vega-pink-600 to-vega-pink-500':
userTierIndex % 6 === 1,
userTierIndex % 6 === 0 || userTierIndex % 6 === 5,
'from-vega-purple-600 to-vega-purple-500':
userTierIndex % 6 === 2,
userTierIndex % 6 === 1,
'from-vega-blue-600 to-vega-blue-500':
userTierIndex % 6 === 3,
userTierIndex % 6 === 2,
'from-vega-orange-600 to-vega-orange-500':
userTierIndex % 6 === 4,
userTierIndex % 6 === 3,
'from-vega-green-600 to-vega-green-500':
userTierIndex % 6 === 5,
userTierIndex % 6 === 4,
}
)}
style={{ width: safeProgress(index) + '%' }}