feat: improve ui/ux learn map (#40579)

Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
This commit is contained in:
Tom
2021-01-13 07:09:45 -06:00
committed by Mrugesh Mohapatra
parent 14ca6beb0a
commit 625469c82f
45 changed files with 3297 additions and 965 deletions

View File

@@ -10,7 +10,9 @@ const propTypes = {
height: PropTypes.number,
loadedClassName: PropTypes.string,
loadingClassName: PropTypes.string,
offsetVertical: PropTypes.number,
src: PropTypes.string,
style: PropTypes.object,
width: PropTypes.number
};
@@ -18,8 +20,10 @@ const ImageLoader = ({
className = '',
loadedClassName = 'img-loaded',
loadingClassName = 'img-loading',
offsetVertical = 100,
alt,
src,
style,
width,
height
}) => {
@@ -31,7 +35,7 @@ const ImageLoader = ({
<LazyLoad
debounce={false}
height={height}
offsetVertical={100}
offsetVertical={offsetVertical}
width={width}
>
{/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */}
@@ -40,6 +44,7 @@ const ImageLoader = ({
className={fullClassName}
onLoad={() => setLoaded(true)}
src={src}
style={style}
/>
</LazyLoad>
);