Removing useless resize alert function in PostBody
Этот коммит содержится в:
@@ -204,7 +204,6 @@ export default class Post extends React.Component {
|
|||||||
posts={posts}
|
posts={posts}
|
||||||
handleCommentClick={this.handleCommentClick}
|
handleCommentClick={this.handleCommentClick}
|
||||||
retryPost={this.retryPost}
|
retryPost={this.retryPost}
|
||||||
resize={this.props.resize}
|
|
||||||
/>
|
/>
|
||||||
<PostInfo
|
<PostInfo
|
||||||
ref='info'
|
ref='info'
|
||||||
@@ -228,6 +227,5 @@ Post.propTypes = {
|
|||||||
sameUser: React.PropTypes.bool,
|
sameUser: React.PropTypes.bool,
|
||||||
sameRoot: React.PropTypes.bool,
|
sameRoot: React.PropTypes.bool,
|
||||||
hideProfilePic: React.PropTypes.bool,
|
hideProfilePic: React.PropTypes.bool,
|
||||||
isLastComment: React.PropTypes.bool,
|
isLastComment: React.PropTypes.bool
|
||||||
resize: React.PropTypes.func
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ export default class PostBody extends React.Component {
|
|||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.parseEmojis();
|
this.parseEmojis();
|
||||||
this.props.resize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
@@ -338,6 +337,5 @@ PostBody.propTypes = {
|
|||||||
post: React.PropTypes.object.isRequired,
|
post: React.PropTypes.object.isRequired,
|
||||||
parentPost: React.PropTypes.object,
|
parentPost: React.PropTypes.object,
|
||||||
retryPost: React.PropTypes.func.isRequired,
|
retryPost: React.PropTypes.func.isRequired,
|
||||||
handleCommentClick: React.PropTypes.func.isRequired,
|
handleCommentClick: React.PropTypes.func.isRequired
|
||||||
resize: React.PropTypes.func.isRequired
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ export default class PostsView extends React.Component {
|
|||||||
this.handleScroll = this.handleScroll.bind(this);
|
this.handleScroll = this.handleScroll.bind(this);
|
||||||
this.isAtBottom = this.isAtBottom.bind(this);
|
this.isAtBottom = this.isAtBottom.bind(this);
|
||||||
this.loadMorePostsTop = this.loadMorePostsTop.bind(this);
|
this.loadMorePostsTop = this.loadMorePostsTop.bind(this);
|
||||||
this.postsRerendered = this.postsRerendered.bind(this);
|
|
||||||
this.createPosts = this.createPosts.bind(this);
|
this.createPosts = this.createPosts.bind(this);
|
||||||
this.updateScrolling = this.updateScrolling.bind(this);
|
this.updateScrolling = this.updateScrolling.bind(this);
|
||||||
this.handleResize = this.handleResize.bind(this);
|
this.handleResize = this.handleResize.bind(this);
|
||||||
@@ -53,8 +52,6 @@ export default class PostsView extends React.Component {
|
|||||||
loadMorePostsTop() {
|
loadMorePostsTop() {
|
||||||
this.props.loadMorePostsTopClicked();
|
this.props.loadMorePostsTopClicked();
|
||||||
}
|
}
|
||||||
postsRerendered() {
|
|
||||||
}
|
|
||||||
createPosts(posts, order) {
|
createPosts(posts, order) {
|
||||||
const postCtls = [];
|
const postCtls = [];
|
||||||
let previousPostDay = new Date(0);
|
let previousPostDay = new Date(0);
|
||||||
@@ -111,7 +108,6 @@ export default class PostsView extends React.Component {
|
|||||||
posts={posts}
|
posts={posts}
|
||||||
hideProfilePic={hideProfilePic}
|
hideProfilePic={hideProfilePic}
|
||||||
isLastComment={isLastComment}
|
isLastComment={isLastComment}
|
||||||
resize={this.postsRerendered}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user