perfectionism mode

This commit is contained in:
ilya-bkv 2023-04-03 16:38:44 +03:00
parent 71fb5c5276
commit 4a8c2bea77
3 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import { useReactions } from '../../context/reactions'
import { byCreated } from '../../utils/sortby'
import { ShowIfAuthenticated } from '../_shared/ShowIfAuthenticated'
import { useLocalize } from '../../context/localize'
import Cookie from 'js-cookie'
type CommentsOrder = 'createdAt' | 'rating' | 'newOnly'
@ -148,7 +147,7 @@ export const CommentsTree = (props: Props) => {
</ul>
</div>
<ul class={styles.comments}>
<For each={sortedComments().filter((r) => !r.replyTo)}>
<For each={sortedComments().filter((r: Reaction) => !r.replyTo)}>
{(reaction) => (
<Comment
sortedComments={sortedComments()}

View File

@ -187,7 +187,7 @@ export const FullArticle = (props: ArticleProps) => {
<a href="#comments" class={styles.shoutStatsItem}>
<Icon name="comment" class={styles.icon} />
{/*{props.article.stat?.commented || ''}*/}
{props.article.stat?.commented ?? ''}
</a>
<div class={styles.shoutStatsItem}>

View File

@ -155,7 +155,6 @@ export const ArticleCard = (props: ArticleCardProps) => {
</For>
</div>
</Show>
<Show when={!props.settings?.nodate}>
<div class={styles.shoutDate}>{formattedDate()}</div>
</Show>