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:
parent
258723ea72
commit
0abf5b4f02
3 changed files with 9 additions and 28 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue