remove hook entirely

This commit is contained in:
Alec Armbruster 2023-06-26 12:16:32 -04:00 committed by Jay Sitter
parent a6b59b78d2
commit a29cb0e83b

View file

@ -42,7 +42,6 @@ import {
SavePost, SavePost,
TransferCommunity, TransferCommunity,
} from "lemmy-js-client"; } from "lemmy-js-client";
import deepEqual from "lodash.isequal";
import { relTags } from "../../config"; import { relTags } from "../../config";
import { import {
BanType, BanType,
@ -168,26 +167,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
this.handleEditCancel = this.handleEditCancel.bind(this); 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 { get postView(): PostView {
return this.props.post_view; return this.props.post_view;
} }