Merge branch 'main' into feat/vote-components
This commit is contained in:
commit
c79894a11c
10 changed files with 42 additions and 91 deletions
|
@ -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>
|
||||
|
|
|
@ -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) : [];
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue