comments-order-hotfix
This commit is contained in:
parent
9e513b2430
commit
abc2d01485
|
@ -25,6 +25,7 @@ import { Loading } from '../../_shared/Loading'
|
||||||
|
|
||||||
import stylesArticle from '../../Article/Article.module.scss'
|
import stylesArticle from '../../Article/Article.module.scss'
|
||||||
import styles from './Author.module.scss'
|
import styles from './Author.module.scss'
|
||||||
|
import {byCreated} from "../../../utils/sortby";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
shouts: Shout[]
|
shouts: Shout[]
|
||||||
|
@ -231,7 +232,7 @@ export const AuthorView = (props: Props) => {
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-20 col-lg-18">
|
<div class="col-md-20 col-lg-18">
|
||||||
<ul class={stylesArticle.comments}>
|
<ul class={stylesArticle.comments}>
|
||||||
<For each={commented()}>
|
<For each={commented()?.sort(byCreated).reverse()}>
|
||||||
{(comment) => <Comment comment={comment} class={styles.comment} showArticleLink />}
|
{(comment) => <Comment comment={comment} class={styles.comment} showArticleLink />}
|
||||||
</For>
|
</For>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user