@@ -126,6 +126,12 @@ const ProfileDetails = ({
126
126
( achievements &&
127
127
achievements . find ( achievement => achievement . id === 'twitter-follow' ) ) ||
128
128
null ;
129
+ const youtubeSubscriptionAchievement =
130
+ ( achievements &&
131
+ achievements . find (
132
+ achievement => achievement . id === 'youtube-subscription'
133
+ ) ) ||
134
+ null ;
129
135
130
136
const [
131
137
discordUsernameSyncStatus ,
@@ -307,6 +313,23 @@ const ProfileDetails = ({
307
313
isNotFilled : ! twitterUsername ,
308
314
icon : communityLinksConfig . twitterUsername . icon ,
309
315
} ,
316
+ {
317
+ text : ! youtubeUsername ? (
318
+ < MarkdownText
319
+ translatableSource = { communityLinksConfig . youtubeUsername . getRewardMessage (
320
+ false ,
321
+ youtubeSubscriptionAchievement &&
322
+ youtubeSubscriptionAchievement . rewardValueInCredits
323
+ ? youtubeSubscriptionAchievement . rewardValueInCredits . toString ( )
324
+ : '-'
325
+ ) }
326
+ />
327
+ ) : (
328
+ youtubeUsername
329
+ ) ,
330
+ isNotFilled : ! youtubeUsername ,
331
+ icon : communityLinksConfig . youtubeUsername . icon ,
332
+ } ,
310
333
{
311
334
text : ! tiktokUsername ? (
312
335
< MarkdownText
@@ -336,10 +359,6 @@ const ProfileDetails = ({
336
359
text : facebookUsername ,
337
360
icon : communityLinksConfig . facebookUsername . icon ,
338
361
} ,
339
- {
340
- text : youtubeUsername ,
341
- icon : communityLinksConfig . youtubeUsername . icon ,
342
- } ,
343
362
{
344
363
text : instagramUsername ,
345
364
icon : communityLinksConfig . instagramUsername . icon ,
0 commit comments