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
@@ -32,12 +32,10 @@ class UserDetailComment extends React.Component {
selected,
toggleSelect,
className,
data,
root: { settings },
} = this.props;
const slotPassthrough = {
data,
root,
comment,
suspectWords: settings.wordlist.suspect,
@@ -127,7 +125,7 @@ class UserDetailComment extends React.Component {
</div>
</CommentAnimatedEdit>
</div>
<CommentDetails data={data} root={root} comment={comment} />
<CommentDetails root={root} comment={comment} />
</li>
);
}
@@ -135,7 +133,6 @@ class UserDetailComment extends React.Component {
UserDetailComment.propTypes = {
selected: PropTypes.bool,
data: PropTypes.object,
user: PropTypes.object.isRequired,
viewUserDetail: PropTypes.func.isRequired,
acceptComment: PropTypes.func.isRequired,