Enable swipe actions on "Image failed to load" component within Lightbox (#10153)

* fix: apply swipe actions on error component

* fix: enable copy and download action btns only when the image is loaded

* Revert "fix: enable copy and download action btns only when the image is loaded"

This reverts commit 9228d5e5df.
This commit is contained in:
Apoorv Mishra
2025-09-11 21:16:54 +05:30
committed by GitHub
parent f3fe7283f8
commit f1bc5f6216
+1 -1
View File
@@ -625,7 +625,7 @@ const Image = forwardRef<HTMLImageElement, ImageProps>(function _Image(
}, [status.image]);
return status.image === ImageStatus.ERROR ? (
<StyledError animation={animation}>
<StyledError animation={animation} {...swipeHandlers}>
<CrossIcon size={16} /> {t("Image failed to load")}
</StyledError>
) : (