fix: update react-share to v5 (#795)

This commit is contained in:
Maxwell Frank
2026-02-12 09:03:29 -05:00
committed by GitHub
parent 8fc839dc3d
commit eef5d3f671
3 changed files with 8 additions and 10 deletions

14
package-lock.json generated
View File

@@ -36,7 +36,7 @@
"react-intl": "6.8.9", "react-intl": "6.8.9",
"react-redux": "^7.2.4", "react-redux": "^7.2.4",
"react-router-dom": "6.30.3", "react-router-dom": "6.30.3",
"react-share": "^4.4.0", "react-share": "^5.2.2",
"redux": "4.2.1", "redux": "4.2.1",
"redux-logger": "3.0.6", "redux-logger": "3.0.6",
"redux-thunk": "2.4.2", "redux-thunk": "2.4.2",
@@ -18868,20 +18868,16 @@
} }
}, },
"node_modules/react-share": { "node_modules/react-share": {
"version": "4.4.1", "version": "5.2.2",
"resolved": "https://registry.npmjs.org/react-share/-/react-share-4.4.1.tgz", "resolved": "https://registry.npmjs.org/react-share/-/react-share-5.2.2.tgz",
"integrity": "sha512-AJ9m9RiJssqvYg7MoJUc9J0D7b/liWrsfQ99ndKc5vJ4oVHHd4Fy87jBlKEQPibT40oYA3AQ/a9/oQY6/yaigw==", "integrity": "sha512-z0nbOX6X6vHHWAvXduNkYeJUKTKNpKM5Xpmc5a2BxjJhUWl+sE7AsSEMmYEUj2DuDjZr5m7KFIGF0sQPKcUN6w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"classnames": "^2.3.2", "classnames": "^2.3.2",
"jsonp": "^0.2.1" "jsonp": "^0.2.1"
}, },
"engines": {
"node": ">=6.9.0",
"npm": ">=5.0.0"
},
"peerDependencies": { "peerDependencies": {
"react": "^16.3.0 || ^17 || ^18" "react": "^17 || ^18 || ^19"
} }
}, },
"node_modules/react-side-effect": { "node_modules/react-side-effect": {

View File

@@ -56,7 +56,7 @@
"react-intl": "6.8.9", "react-intl": "6.8.9",
"react-redux": "^7.2.4", "react-redux": "^7.2.4",
"react-router-dom": "6.30.3", "react-router-dom": "6.30.3",
"react-share": "^4.4.0", "react-share": "^5.2.2",
"redux": "4.2.1", "redux": "4.2.1",
"redux-logger": "3.0.6", "redux-logger": "3.0.6",
"redux-thunk": "2.4.2", "redux-thunk": "2.4.2",

View File

@@ -50,6 +50,7 @@ export const SocialShareMenu = ({ cardId, emailSettings }) => {
})} })}
resetButtonStyle={false} resetButtonStyle={false}
className="pgn__dropdown-item dropdown-item" className="pgn__dropdown-item dropdown-item"
aria-label="facebook"
> >
{formatMessage(messages.shareToFacebook)} {formatMessage(messages.shareToFacebook)}
</ReactShare.FacebookShareButton> </ReactShare.FacebookShareButton>
@@ -64,6 +65,7 @@ export const SocialShareMenu = ({ cardId, emailSettings }) => {
})} })}
resetButtonStyle={false} resetButtonStyle={false}
className="pgn__dropdown-item dropdown-item" className="pgn__dropdown-item dropdown-item"
aria-label="twitter"
> >
{formatMessage(messages.shareToTwitter)} {formatMessage(messages.shareToTwitter)}
</ReactShare.TwitterShareButton> </ReactShare.TwitterShareButton>