fix incorrect aria-label in rewards page

This commit is contained in:
btzr-io 2021-07-12 21:55:08 -05:00 committed by Thomas Zarebczan
parent 2391f66d90
commit 7398120c0c
2 changed files with 5 additions and 1 deletions

View file

@ -2043,5 +2043,8 @@
"Trending for #Art": "Trending for #Art",
"Trending for #Education": "Trending for #Education",
"Trending for #Technology": "Trending for #Technology",
"Watch content and earn more Credits for each level unlocked! 10 views required for level 1 (Current Score: 0). Only up to 10 views per day count.": "Watch content and earn more Credits for each level unlocked! 10 views required for level 1 (Current Score: 0). Only up to 10 views per day count.",
"Follow your favorite creators and earn more Credits for each level unlocked! Follow 1 creators for level 1 (Current Score: 0).": "Follow your favorite creators and earn more Credits for each level unlocked! Follow 1 creators for level 1 (Current Score: 0).",
"Gain a following to earn this reward. 1 validated followers needed for level 1 (Current Score: 0). This amount may not match your total followers.": "Gain a following to earn this reward. 1 validated followers needed for level 1 (Current Score: 0). This amount may not match your total followers.",
"--end--": "--end--"
}

View file

@ -13,7 +13,7 @@ type Props = {
label: ?string,
reward: Reward,
button: ?boolean,
claimReward: Reward => void,
claimReward: (Reward) => void,
};
const RewardLink = (props: Props) => {
@ -36,6 +36,7 @@ const RewardLink = (props: Props) => {
button={button ? 'primary' : 'link'}
disabled={isPending}
label={<LbcMessage>{displayLabel}</LbcMessage>}
aria-label={displayLabel}
onClick={() => {
claimReward(reward);
}}