deps: react-share 2 -> 5 (drops its defaultProps warnings)

react-share 2.0 shipped function components with defaultProps (CreatedButton,
Icon) -> React-19-blocking warnings on fire-detail pages. v5 is React-18-safe
and drops them. Removed the GooglePlusShareButton/Icon (Google+ is dead;
removed from react-share in v4+); the other 6 buttons (Facebook, Twitter,
Telegram, WhatsApp, Reddit, Email) are API-compatible. Browser-verified 6
buttons render, no defaultProps warnings. REST smoke byte-identical.
This commit is contained in:
vjrj 2026-07-21 14:14:48 +02:00
parent 258723ea72
commit 0abf5b4f02
3 changed files with 9 additions and 28 deletions

View file

@ -8,7 +8,6 @@ import { withTracker } from 'meteor/react-meteor-data';
import { currentLocationHref } from '/imports/ui/components/Utils/location';
import {
FacebookShareButton,
GooglePlusShareButton,
TwitterShareButton,
TelegramShareButton,
WhatsappShareButton,
@ -16,7 +15,6 @@ import {
EmailShareButton,
FacebookIcon,
GooglePlusIcon,
TwitterIcon,
TelegramIcon,
WhatsappIcon,
@ -94,15 +92,6 @@ class ShareIt extends Component {
</div>
</div>
<div className="share_it">
<GooglePlusShareButton
url={shareUrl}
className="share_it__share-button"
>
<GooglePlusIcon size={32} round />
</GooglePlusShareButton>
</div>
<div className="share_it">
<RedditShareButton
url={shareUrl}
@ -135,9 +124,6 @@ ShareIt.propTypes = {
title: PropTypes.string.isRequired
};
ShareIt.defaultProps = {
};
export default withTranslation()(withTracker((props) => {
const { title } = props;
return {