mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
tried to make placeholders
This commit is contained in:
parent
b5b8d78cea
commit
7410376009
5 changed files with 67 additions and 1 deletions
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue