mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added random description generator
This commit is contained in:
parent
372e016e3d
commit
b8b2714040
2 changed files with 26 additions and 1 deletions
|
@ -3,6 +3,7 @@ import { INode } from '~/redux/types';
|
|||
import styles from './styles.module.scss';
|
||||
import { CommentAvatar } from '~/components/comment/CommentAvatar';
|
||||
import { openUserProfile } from '~/utils/user';
|
||||
import { useRandomPhrase } from '~/constants/phrases';
|
||||
|
||||
interface Props {
|
||||
node?: INode;
|
||||
|
@ -23,7 +24,12 @@ const NodeAuthorBlock: FC<Props> = ({ node }) => {
|
|||
|
||||
<div className={styles.info}>
|
||||
<div className={styles.username}>{fullname || username}</div>
|
||||
{description && <div className={styles.description}>{description}</div>}
|
||||
|
||||
{description && (
|
||||
<div className={styles.description}>
|
||||
{description || useRandomPhrase('USER_DESCRIPTION')}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue