From 2e80208b0a1341d4904af582680b7e7f41c1ad15 Mon Sep 17 00:00:00 2001 From: benmneb <62878664+benmneb@users.noreply.github.com> Date: Sun, 20 Nov 2022 16:15:45 +0800 Subject: [PATCH] fix(src): temporarily remove ref as its breaking stuff --- src/Image.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Image.js b/src/Image.js index 8b4fc9c..1eb442a 100644 --- a/src/Image.js +++ b/src/Image.js @@ -25,7 +25,7 @@ const Img = styled('img')({ }, }); -export default React.forwardRef(function Image(props, ref) { +export default function Image(props) { const { src, alt, @@ -127,7 +127,6 @@ export default React.forwardRef(function Image(props, ref) { onLoad={handleLoad} onError={handleError} {...rest} - ref={ref} /> {(Boolean(showLoading) || Boolean(errorIcon)) && (
); -}); +} Image.defaultProps = { alt: '',