Skip to content

Commit

Permalink
Made the Twitter Account Links clickable on the Supporters' Slide-out…
Browse files Browse the repository at this point in the history
… drawer

This is now the case for some responsive sizes and desktop.  These links are not displayed in Cordova.

Resolves https://wevoteusa.atlassian.net/browse/WV-102
  • Loading branch information
SailingSteve committed Jan 23, 2024
1 parent afaabf4 commit 076fec3
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/js/components/Ballot/PositionItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,23 @@ class PositionItem extends Component {
<DesktopItemTwitterContainer>
{ !!(position.twitter_followers_count && String(position.twitter_followers_count) !== '0') && (
<DesktopItemTwitter>
<Twitter classes={{ root: classes.twitterLogo }} />
<TwitterHandleWrapper>
@
{position.speaker_twitter_handle}
</TwitterHandleWrapper>
<TwitterFollowersWrapper>
{abbreviateNumber(position.twitter_followers_count)}
</TwitterFollowersWrapper>
<OpenExternalWebSite
body={(
<div style={{ marginTop: '-24px' }}>
<Twitter classes={{ root: classes.twitterLogo }} />
<TwitterHandleWrapper>
@
{position.speaker_twitter_handle}
</TwitterHandleWrapper>
<TwitterFollowersWrapper>
{abbreviateNumber(position.twitter_followers_count)}
</TwitterFollowersWrapper>
</div>
)}
linkIdAttribute="candidateTwitterDesktop"
url={`https://twitter.com/${position.speaker_twitter_handle}`}
target="_blank"
/>
</DesktopItemTwitter>
)}
</DesktopItemTwitterContainer>
Expand Down

0 comments on commit 076fec3

Please sign in to comment.