Skip to content

Commit

Permalink
Gleev v4.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
attemka committed Nov 9, 2023
1 parent 6a53adf commit dc187a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"description": "UI for consuming Joystream - a user governed video platform",
"version": "4.13.1",
"version": "4.13.2",
"license": "GPL-3.0",
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/atlas.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ features:
rewards:
- 25
- 1
- 10
- 12.5
- tier: 'gold'
reqs:
- Great quality of content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TierBanner,
Wrapper,
} from '@/components/_referrals/TierCard/TierCard.styles'
import { atlasConfig } from '@/config'
import { capitalizeFirstLetter } from '@/utils/misc'
import { getTierRewards } from '@/utils/ypp'
import { TickWrapper } from '@/views/global/YppLandingView/YppAuthorizationModal/YppAuthorizationSteps/YppAuthorizationRequirementsStep/YppAuthorizationRequirementsStep.styles'
Expand All @@ -40,7 +41,8 @@ export const getTierIcon = (tier: TierCardProps['tier']) => {
}

export const TierCard = ({ reqs, tier }: TierCardProps) => {
const referralReward = getTierRewards(tier)?.referral
const signupMultiplier = tier === 'bronze' ? 1 : atlasConfig.features.ypp.tierBoostMultiplier || 1
const referralReward = (getTierRewards(tier)?.referral || 0) * signupMultiplier
return (
<Wrapper>
<TierBanner tier={tier}>
Expand Down

0 comments on commit dc187a9

Please sign in to comment.