change styles for list-comments

This commit is contained in:
Pavel Mineev
2021-01-12 13:39:26 -06:00
committed by Umputun
parent 1052898589
commit 27e0fa0701
2 changed files with 19 additions and 20 deletions
@@ -1,3 +1,3 @@
.list-comments {
.root {
font-family: 'PT Sans', Helvetica, Arial, sans-serif;
}
@@ -2,9 +2,10 @@ import { h, FunctionComponent } from 'preact';
import { useIntl } from 'react-intl';
import type { Comment as CommentType } from 'common/types';
import { NODE_ID } from 'common/constants';
import Comment from 'components/comment';
import styles from './list-comments.module.css';
export type ListCommentsProps = {
comments: CommentType[];
};
@@ -13,24 +14,22 @@ const ListComments: FunctionComponent<ListCommentsProps> = ({ comments = [] }) =
const intl = useIntl();
return (
<div id={NODE_ID}>
<div className="list-comments">
{comments.map(comment => (
<Comment
intl={intl}
key={comment.id}
CommentForm={null}
data={comment}
level={0}
view="preview"
mix="list-comments__item"
user={null}
theme="light"
isCommentsDisabled={false}
post_info={null}
/>
))}
</div>
<div className={styles.root}>
{comments.map(comment => (
<Comment
intl={intl}
key={comment.id}
CommentForm={null}
data={comment}
level={0}
view="preview"
mix="list-comments__item"
user={null}
theme="light"
isCommentsDisabled={false}
post_info={null}
/>
))}
</div>
);
};