New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: React does not recognize the.... (disableFocusRipple, disableRipple, fullWidth, disableElevation) #316
Comments
UPD: The reason for this warnings was in parent component (ButtonGroup )which I was using and this parent component was passing refs down. Closed |
@Diaver Sorry, how did you fix this? I'm in the same situation only using standard setup:
Should work out of the box, no? xD |
@kyr0 import React from 'react';
import {
FacebookIcon,
FacebookShareButton,
RedditIcon,
RedditShareButton,
TelegramIcon,
TelegramShareButton,
TwitterIcon,
TwitterShareButton, VKIcon, VKShareButton,
WeiboIcon,
WeiboShareButton, WhatsappIcon,
WhatsappShareButton
} from "react-share";
import CardContent from "@material-ui/core/CardContent";
import {createStyles, makeStyles, Theme} from "@material-ui/core/styles";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
socialButton: {
marginRight: 8
},
}),
);
interface IMarkerCardShareButtonsProp {
messageText: string
}
export function MarkerCardShareButtons(props: IMarkerCardShareButtonsProp) {
const classes = useStyles();
return (
<CardContent>
<FacebookShareButton
className={classes.socialButton}
url={window.location.href}
quote={props.messageText}
>
<FacebookIcon
round={true}
size={32}
/>
</FacebookShareButton>
<TwitterShareButton url={window.location.href} className={classes.socialButton}>
<TwitterIcon
round={true}
size={32}
/>
</TwitterShareButton>
<RedditShareButton url={window.location.href} className={classes.socialButton}>
<RedditIcon
round={true}
size={32}
/>
</RedditShareButton>
<WeiboShareButton url={window.location.href} className={classes.socialButton}>
<WeiboIcon
round={true}
size={32}
/>
</WeiboShareButton>
<TelegramShareButton url={window.location.href} className={classes.socialButton}>
<TelegramIcon
round={true}
size={32}
/>
</TelegramShareButton>
<WhatsappShareButton url={window.location.href} className={classes.socialButton}>
<WhatsappIcon
round={true}
size={32}
/>
</WhatsappShareButton>
<VKShareButton url={window.location.href} className={classes.socialButton}>
<VKIcon
round={true}
size={32}
/>
</VKShareButton>
</CardContent>
)
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I do receive a lot of warnings from React like:
Related to following props for all share buttons:
React version: 16.13.1
react-share version: 4.1.0
material-ui version: 4.9.12
The text was updated successfully, but these errors were encountered: