mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 17:44:16 +00:00
remove hook entirely
This commit is contained in:
parent
e6909d4cd1
commit
81131d2804
|
@ -42,7 +42,6 @@ import {
|
|||
SavePost,
|
||||
TransferCommunity,
|
||||
} from "lemmy-js-client";
|
||||
import deepEqual from "lodash.isequal";
|
||||
import { relTags } from "../../config";
|
||||
import {
|
||||
BanType,
|
||||
|
@ -168,26 +167,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
this.handleEditCancel = this.handleEditCancel.bind(this);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps: PostListingProps) {
|
||||
if (!deepEqual(this.props, nextProps)) {
|
||||
this.setState({
|
||||
purgeLoading: false,
|
||||
reportLoading: false,
|
||||
blockLoading: false,
|
||||
lockLoading: false,
|
||||
deleteLoading: false,
|
||||
removeLoading: false,
|
||||
saveLoading: false,
|
||||
featureCommunityLoading: false,
|
||||
featureLocalLoading: false,
|
||||
banLoading: false,
|
||||
addModLoading: false,
|
||||
addAdminLoading: false,
|
||||
transferLoading: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
get postView(): PostView {
|
||||
return this.props.post_view;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue