mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
adding comments
This commit is contained in:
parent
c541278686
commit
76a3331719
14 changed files with 148 additions and 26 deletions
|
@ -1,16 +1,18 @@
|
|||
import React, { FC, HTMLAttributes } from 'react';
|
||||
import { CommentWrapper } from '~/components/containers/CommentWrapper';
|
||||
import { IComment } from '~/redux/types';
|
||||
import * as styles from './styles.scss';
|
||||
|
||||
type IProps = HTMLAttributes<HTMLDivElement> & {
|
||||
is_empty?: boolean;
|
||||
is_loading?: boolean;
|
||||
photo?: string;
|
||||
comment?: any;
|
||||
comment?: IComment;
|
||||
};
|
||||
|
||||
const Comment: FC<IProps> = ({ comment, is_empty, is_loading, className, photo, ...props }) => (
|
||||
<CommentWrapper is_empty={is_empty} is_loading={is_loading} photo={photo} {...props}>
|
||||
<div>Something!</div>
|
||||
{comment.text && <div className={styles.text}>{comment.text}</div>}
|
||||
</CommentWrapper>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue