Skip to content

Commit eef5d3f

Browse files
authored
fix: update react-share to v5 (#795)
1 parent 8fc839d commit eef5d3f

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

package-lock.json

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"react-intl": "6.8.9",
5757
"react-redux": "^7.2.4",
5858
"react-router-dom": "6.30.3",
59-
"react-share": "^4.4.0",
59+
"react-share": "^5.2.2",
6060
"redux": "4.2.1",
6161
"redux-logger": "3.0.6",
6262
"redux-thunk": "2.4.2",

src/containers/CourseCard/components/CourseCardMenu/SocialShareMenu.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const SocialShareMenu = ({ cardId, emailSettings }) => {
5050
})}
5151
resetButtonStyle={false}
5252
className="pgn__dropdown-item dropdown-item"
53+
aria-label="facebook"
5354
>
5455
{formatMessage(messages.shareToFacebook)}
5556
</ReactShare.FacebookShareButton>
@@ -64,6 +65,7 @@ export const SocialShareMenu = ({ cardId, emailSettings }) => {
6465
})}
6566
resetButtonStyle={false}
6667
className="pgn__dropdown-item dropdown-item"
68+
aria-label="twitter"
6769
>
6870
{formatMessage(messages.shareToTwitter)}
6971
</ReactShare.TwitterShareButton>

0 commit comments

Comments
 (0)