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

tried to make placeholders

This commit is contained in:
muerwre 2019-07-27 19:06:00 +07:00
parent b5b8d78cea
commit 7410376009
5 changed files with 67 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import React, {FC, HTMLAttributes} from 'react';
import { Card } from "~/components/containers/Card";
import * as styles from './styles.scss';
import classNames = require("classnames");
import {ParagraphPlaceholder} from "~/components/placeholders/ParagraphPlaceholder";
type IProps = HTMLAttributes<HTMLDivElement> & {
is_empty?: boolean;
@ -22,7 +23,11 @@ const Comment: FC<IProps> = ({
<div className={styles.thumb_image} />
</div>
<div className={styles.text} />
<div className={styles.text}>
{
is_empty && <ParagraphPlaceholder />
}
</div>
</Card>
);