@wistia/ui 0.4.5-beta.e27ea928.c4e583e → 0.4.5-beta.ee077347.9f15f42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.5-beta.
|
|
3
|
+
* @license @wistia/ui v0.4.5-beta.ee077347.9f15f42
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -5960,6 +5960,9 @@ var Avatar = ({
|
|
|
5960
5960
|
...otherProps
|
|
5961
5961
|
}) => {
|
|
5962
5962
|
const [imageLoadState, setImageLoadState] = (0, import_react14.useState)(null);
|
|
5963
|
+
(0, import_react14.useEffect)(() => {
|
|
5964
|
+
setImageLoadState(null);
|
|
5965
|
+
}, [imageUrl]);
|
|
5963
5966
|
const handleImageLoad = () => {
|
|
5964
5967
|
setImageLoadState("loaded");
|
|
5965
5968
|
onImageLoad?.("image");
|