1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-06 10:06:41 +07:00

disabled lazy load on flow cell

This commit is contained in:
Fedor Katurov 2021-12-16 13:54:15 +07:00
parent 7ed425efa3
commit 4f0a015593
4 changed files with 36 additions and 4 deletions

View file

@ -1,5 +1,4 @@
import React, { FC } from 'react';
import LazyLoad from 'react-lazyload';
import { IMGProps } from '~/utils/types';
import styles from './styles.module.scss';
import classNames from 'classnames';
@ -9,10 +8,10 @@ interface Props extends IMGProps {
}
const FlowCellImage: FC<Props> = ({ className, children, ...rest }) => (
<LazyLoad once offset={600} className={classNames(styles.wrapper, className)}>
<div className={classNames(styles.wrapper, className)}>
<img {...rest} src={rest.src} alt="" />
{children}
</LazyLoad>
</div>
);
export { FlowCellImage };