An ATproto social media client -- with an independent Appview.

rearrange translation logic (#8880)

authored by

surfdude29 and committed by
GitHub
f038ac70 e404ddfb

+13 -6
+13 -6
src/components/ProfileCard.tsx
··· 513 513 comment: 'User is following this account, click to unfollow', 514 514 }), 515 515 ) 516 - const followLabel = _( 517 - msg({ 518 - message: profile.viewer?.followedBy ? 'Follow back' : 'Follow', 519 - comment: 'User is not following this account, click to follow', 520 - }), 521 - ) 516 + const followLabel = profile.viewer?.followedBy 517 + ? _( 518 + msg({ 519 + message: 'Follow back', 520 + comment: 'User is not following this account, click to follow back', 521 + }), 522 + ) 523 + : _( 524 + msg({ 525 + message: 'Follow', 526 + comment: 'User is not following this account, click to follow', 527 + }), 528 + ) 522 529 523 530 if (!profile.viewer) return null 524 531 if (