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

fixed images count

This commit is contained in:
Fedor Katurov 2020-04-28 13:50:37 +07:00
parent 47ed05999a
commit 071e5968c8

View file

@ -330,13 +330,13 @@ const NodeImageSlideBlock: FC<IProps> = ({
*/}
</div>
{images.length > 0 && (
{images.length > 1 && (
<div className={classNames(styles.image_arrow)} onClick={onPrev}>
<Icon icon="left" size={40} />
</div>
)}
{images.length > 0 && (
{images.length > 1 && (
<div className={classNames(styles.image_arrow, styles.image_arrow_right)} onClick={onNext}>
<Icon icon="right" size={40} />
</div>