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:
parent
7ed425efa3
commit
4f0a015593
4 changed files with 36 additions and 4 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue