From 73b536870728114b087ca9655165bd365720ab43 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Tue, 4 Jun 2024 00:52:18 +0700 Subject: [PATCH] feat: fixed alt --- .../src/helpers/image.with.fallback.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/libraries/react-shared-libraries/src/helpers/image.with.fallback.tsx b/libraries/react-shared-libraries/src/helpers/image.with.fallback.tsx index d0b754b3..430d9b9a 100644 --- a/libraries/react-shared-libraries/src/helpers/image.with.fallback.tsx +++ b/libraries/react-shared-libraries/src/helpers/image.with.fallback.tsx @@ -10,18 +10,19 @@ interface ImageSrc { } const ImageWithFallback: FC = (props) => { - const { src, fallbackSrc, ...rest } = props; - const [imgSrc, setImgSrc] = useState(src); + const { src, fallbackSrc, ...rest } = props; + const [imgSrc, setImgSrc] = useState(src); - return ( - { - setImgSrc(fallbackSrc); - }} - /> - ); + return ( + { + setImgSrc(fallbackSrc); + }} + /> + ); }; -export default ImageWithFallback; \ No newline at end of file +export default ImageWithFallback;