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

added initial profile dialog

This commit is contained in:
Fedor Katurov 2019-11-11 16:01:21 +07:00
parent f6baedc4cd
commit 618c2e3275
28 changed files with 315 additions and 58 deletions

View file

@ -9,6 +9,7 @@ import styles from './styles.scss';
import { CommentForm } from '~/components/node/CommentForm';
import { Group } from '~/components/containers/Group';
import boris from '~/sprites/boris_robot.svg';
import { NodeNoComments } from '~/components/node/NodeNoComments';
const mapStateToProps = state => ({
node: selectNode(state),
@ -78,7 +79,11 @@ const BorisLayoutUnconnected: FC<IProps> = ({
<Group className={styles.content}>
{is_user && <CommentForm id={0} />}
<NodeComments comments={comments} />
{is_loading_comments ? (
<NodeNoComments is_loading />
) : (
<NodeComments comments={comments} />
)}
</Group>
</div>
</div>