From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 17 Feb 2023 17:07:50 +0700
Subject: Refactor

---
 src/core/components/elements/Image/Image.jsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 src/core/components/elements/Image/Image.jsx

(limited to 'src/core/components/elements/Image/Image.jsx')

diff --git a/src/core/components/elements/Image/Image.jsx b/src/core/components/elements/Image/Image.jsx
new file mode 100644
index 00000000..be2866e7
--- /dev/null
+++ b/src/core/components/elements/Image/Image.jsx
@@ -0,0 +1,15 @@
+import { LazyLoadImage } from "react-lazy-load-image-component"
+import "react-lazy-load-image-component/src/effects/opacity.css"
+
+const Image = ({ ...props }) => (
+  <LazyLoadImage
+    { ...props }
+    effect="opacity"
+    src={props.src || '/images/noimage.jpeg'}
+    alt={props.src ? props.alt : 'Image Not Found - Indoteknik'}
+  />
+)
+
+Image.defaultProps = LazyLoadImage.defaultProps
+
+export default Image
\ No newline at end of file
-- 
cgit v1.2.3


From 69f55de26319e570ce0a8c4dbe8a29cb0d0b51c5 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 18 Feb 2023 22:03:55 +0700
Subject: optimization

---
 src/core/components/elements/Image/Image.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/core/components/elements/Image/Image.jsx')

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"
   />
 )
 
-- 
cgit v1.2.3


From 5933732a74ae1ca4124ddd4e8265b1f443234736 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 21 Feb 2023 21:51:51 +0700
Subject: fix

---
 src/core/components/elements/Image/Image.jsx | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'src/core/components/elements/Image/Image.jsx')

diff --git a/src/core/components/elements/Image/Image.jsx b/src/core/components/elements/Image/Image.jsx
index 579660a4..a6f0b00c 100644
--- a/src/core/components/elements/Image/Image.jsx
+++ b/src/core/components/elements/Image/Image.jsx
@@ -2,13 +2,15 @@ import { LazyLoadImage } from "react-lazy-load-image-component"
 import "react-lazy-load-image-component/src/effects/opacity.css"
 
 const Image = ({ ...props }) => (
-  <LazyLoadImage
-    { ...props }
-    src={props.src || '/images/noimage.jpeg'}
-    placeholderSrc="/images/indoteknik-placeholder.png"
-    alt={props.src ? props.alt : 'Image Not Found - Indoteknik'}
-    wrapperClassName="bg-white"
-  />
+  <>
+    <LazyLoadImage
+      { ...props }
+      src={props.src || '/images/noimage.jpeg'}
+      placeholderSrc="/images/indoteknik-placeholder.png"
+      alt={props.src ? props.alt : 'Image Not Found - Indoteknik'}
+      wrapperClassName="bg-white"
+    />
+  </>
 )
 
 Image.defaultProps = LazyLoadImage.defaultProps
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/core/components/elements/Image/Image.jsx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'src/core/components/elements/Image/Image.jsx')

diff --git a/src/core/components/elements/Image/Image.jsx b/src/core/components/elements/Image/Image.jsx
index a6f0b00c..ac82aaaf 100644
--- a/src/core/components/elements/Image/Image.jsx
+++ b/src/core/components/elements/Image/Image.jsx
@@ -1,18 +1,18 @@
-import { LazyLoadImage } from "react-lazy-load-image-component"
-import "react-lazy-load-image-component/src/effects/opacity.css"
+import { LazyLoadImage } from 'react-lazy-load-image-component'
+import 'react-lazy-load-image-component/src/effects/opacity.css'
 
 const Image = ({ ...props }) => (
   <>
     <LazyLoadImage
-      { ...props }
+      {...props}
       src={props.src || '/images/noimage.jpeg'}
-      placeholderSrc="/images/indoteknik-placeholder.png"
+      placeholderSrc='/images/indoteknik-placeholder.png'
       alt={props.src ? props.alt : 'Image Not Found - Indoteknik'}
-      wrapperClassName="bg-white"
+      wrapperClassName='bg-white'
     />
   </>
 )
 
 Image.defaultProps = LazyLoadImage.defaultProps
 
-export default Image
\ No newline at end of file
+export default Image
-- 
cgit v1.2.3

