Merge branch 'main' into feat/vote-components

This commit is contained in:
Jay Sitter 2023-06-23 00:28:53 -04:00 committed by GitHub
commit c79894a11c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 42 additions and 91 deletions

View file

@ -642,7 +642,7 @@ export class Home extends Component<any, HomeState> {
const siteRes = this.state.siteRes;
if (dataType === DataType.Post) {
switch (this.state.postsRes.state) {
switch (this.state.postsRes?.state) {
case "loading":
return (
<h5>

View file

@ -686,6 +686,10 @@ export class Modlog extends Component<
}
}
async componentDidMount() {
await this.refetch();
}
get combined() {
const res = this.state.res;
const combined = res.state == "success" ? buildCombined(res.data) : [];

View file

@ -449,7 +449,6 @@ export class Inbox extends Component<any, InboxState> {
]}
viewType={CommentViewType.Flat}
finished={this.state.finished}
noIndent
markable
showCommunity
showContext
@ -489,7 +488,6 @@ export class Inbox extends Component<any, InboxState> {
]}
finished={this.state.finished}
viewType={CommentViewType.Flat}
noIndent
markable
showCommunity
showContext
@ -567,7 +565,6 @@ export class Inbox extends Component<any, InboxState> {
nodes={commentsToFlatNodes(replies)}
viewType={CommentViewType.Flat}
finished={this.state.finished}
noIndent
markable
showCommunity
showContext
@ -617,7 +614,6 @@ export class Inbox extends Component<any, InboxState> {
nodes={[{ comment_view: umv, children: [], depth: 0 }]}
viewType={CommentViewType.Flat}
finished={this.state.finished}
noIndent
markable
showCommunity
showContext

View file

@ -145,7 +145,6 @@ export class PersonDetails extends Component<PersonDetailsProps, any> {
finished={this.props.finished}
admins={this.props.admins}
noBorder
noIndent
showCommunity
showContext
enableDownvotes={this.props.enableDownvotes}