Remove data prop from Slots

This commit is contained in:
Chi Vinh Le
2018-03-13 21:06:32 +01:00
parent 5e4d010246
commit a81ae2b7f8
29 changed files with 28 additions and 98 deletions
@@ -63,7 +63,7 @@ export default class Embed extends React.Component {
} = this.props;
const hasHighlightedComment = !!commentId;
const popupUrl = `login?parentUrl=${encodeURIComponent(parentUrl)}`;
const slotPassthrough = { data, root };
const slotPassthrough = { root };
return (
<div
@@ -138,9 +138,5 @@ Embed.propTypes = {
commentId: PropTypes.string,
root: PropTypes.object,
activeTab: PropTypes.string,
data: PropTypes.shape({
loading: PropTypes.bool,
error: PropTypes.object,
refetch: PropTypes.func,
}).isRequired,
data: PropTypes.object.isRequired,
};