1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

comment form

This commit is contained in:
muerwre 2019-08-26 13:17:55 +07:00
parent 96bdbb0e04
commit c541278686
15 changed files with 357 additions and 89 deletions

View file

@ -15,6 +15,7 @@ import { NodeComments } from '~/components/node/NodeComments';
import { NodeTags } from '~/components/node/NodeTags';
import { NODE_COMPONENTS } from '~/redux/node/constants';
import * as NODE_ACTIONS from '~/redux/node/actions';
import { CommentForm } from '~/components/node/CommentForm';
const mapStateToProps = selectNode;
const mapDispatchToProps = {
@ -52,6 +53,8 @@ const NodeLayoutUnconnected: FC<IProps> = ({
<Padder>
<Group horizontal className={styles.content}>
<Group className={styles.comments}>
<CommentForm id={node.id || null} />
{is_loading_comments || !comments.length || true ? (
<NodeNoComments is_loading={is_loading_comments} />
) : (