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;