diff --git a/client/package.json b/client/package.json
index 6ca5a9fc994..4e26f2aea91 100644
--- a/client/package.json
+++ b/client/package.json
@@ -103,7 +103,6 @@
"react-i18next": "11.18.6",
"react-instantsearch-core": "6.39.0",
"react-instantsearch-dom": "6.39.0",
- "react-lazy-load": "3.1.14",
"react-monaco-editor": "0.40.0",
"react-redux": "5.1.2",
"react-reflex": "4.0.9",
diff --git a/client/src/components/helpers/image-loader.tsx b/client/src/components/helpers/image-loader.tsx
deleted file mode 100644
index 8010f7f5456..00000000000
--- a/client/src/components/helpers/image-loader.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React, { useState } from 'react';
-
-import './image-loader.css';
-import LazyLoad from 'react-lazy-load';
-
-interface ImageLoaderProps {
- alt?: string;
- className?: string;
- height?: number;
- loadedClassName?: string;
- loadingClassName?: string;
- offsetVertical?: number;
- src?: string;
- style?: React.CSSProperties;
- width?: number;
-}
-
-const ImageLoader = ({
- className = '',
- loadedClassName = 'img-loaded',
- loadingClassName = 'img-loading',
- offsetVertical = 100,
- alt,
- src,
- style,
- width,
- height
-}: ImageLoaderProps): JSX.Element => {
- const [loaded, setLoaded] = useState(false);
- const fullClassName = `${className} ${
- loaded ? loadedClassName : loadingClassName
- }`;
- return (
- {t('landing.hero-img-description')} setLoaded(true)}
- src={src}
- style={style}
- />
-
setLoaded(true)}
+ src={src}
+ style={style}
+ loading='lazy'
+ />
+ );
+};
+
+export default LazyImage;
diff --git a/client/src/components/landing/components/campers-image.tsx b/client/src/components/landing/components/campers-image.tsx
index fe94b118c0f..f1fdbfd16d5 100644
--- a/client/src/components/landing/components/campers-image.tsx
+++ b/client/src/components/landing/components/campers-image.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import Media from 'react-responsive';
import wideImg from '../../../assets/images/landing/wide-image.png';
-import { Spacer, ImageLoader } from '../../helpers';
+import { Spacer, LazyImage } from '../../helpers';
const LARGE_SCREEN_SIZE = 1200;
@@ -24,18 +24,16 @@ const landingImageSize = {
function CampersImage({ pageName }: CampersImageProps): JSX.Element {
const { t } = useTranslation();
- const { spacerSize, height, width } =
+ const { spacerSize } =
pageName === 'donate' ? donateImageSize : landingImageSize;
return (