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

not showing 'No comments' if they're loading

This commit is contained in:
Fedor Katurov 2020-08-27 14:29:11 +07:00
parent 67848ae061
commit a999f8019c

View file

@ -20,7 +20,7 @@ const NodeNoComments: FC<IProps> = ({ is_loading = false, count = 3 }) => {
return (
<Group className={classNames(styles.wrap, { is_loading })}>
{items}
<div className={styles.nothing}>{!is_loading && t(ERRORS.NO_COMMENTS)}</div>
{is_loading && <div className={styles.nothing}>{t(ERRORS.NO_COMMENTS)}</div>}
</Group>
);
};