diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-18 22:03:55 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-18 22:03:55 +0700 |
| commit | 69f55de26319e570ce0a8c4dbe8a29cb0d0b51c5 (patch) | |
| tree | 742f6a7f11812b6e236c2cfb69f94aa1b53a49e5 /src/core | |
| parent | 8c38ac6b55ce3aa15196364619f8f22053a00c48 (diff) | |
optimization
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/components/elements/Image/Image.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/components/elements/Image/Image.jsx b/src/core/components/elements/Image/Image.jsx index be2866e7..579660a4 100644 --- a/src/core/components/elements/Image/Image.jsx +++ b/src/core/components/elements/Image/Image.jsx @@ -4,9 +4,10 @@ import "react-lazy-load-image-component/src/effects/opacity.css" const Image = ({ ...props }) => ( <LazyLoadImage { ...props } - effect="opacity" src={props.src || '/images/noimage.jpeg'} + placeholderSrc="/images/indoteknik-placeholder.png" alt={props.src ? props.alt : 'Image Not Found - Indoteknik'} + wrapperClassName="bg-white" /> ) |
