this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hide "View profile header" if there's no header

+19 -17
+19 -17
src/components/account-info.jsx
··· 634 634 <Trans>View profile image</Trans> 635 635 </span> 636 636 </MenuItem> 637 - <MenuItem 638 - onClick={() => { 639 - states.showMediaModal = { 640 - mediaAttachments: [ 641 - { 642 - type: 'image', 643 - url: headerStatic, 644 - }, 645 - ], 646 - }; 647 - }} 648 - > 649 - <Icon icon="media" /> 650 - <span> 651 - <Trans>View profile header</Trans> 652 - </span> 653 - </MenuItem> 637 + {!!headerStatic && !headerIsAvatar && ( 638 + <MenuItem 639 + onClick={() => { 640 + states.showMediaModal = { 641 + mediaAttachments: [ 642 + { 643 + type: 'image', 644 + url: headerStatic, 645 + }, 646 + ], 647 + }; 648 + }} 649 + > 650 + <Icon icon="media" /> 651 + <span> 652 + <Trans>View profile header</Trans> 653 + </span> 654 + </MenuItem> 655 + )} 654 656 {currentAuthenticated && 655 657 isSelf && 656 658 supports('@mastodon/profile-edit') && (