Skip to content

Commit cca314d

Browse files
committed
chore: improved error hint
1 parent 6a32356 commit cca314d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/thirdweb/src/react/web/ui/MediaRenderer/MediaRenderer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const MediaRenderer = /* @__PURE__ */ (() =>
109109
// 3d model
110110
if (mediaInfo.mimeType.startsWith("model")) {
111111
console.error(
112-
"Encountered an unsupported media type. 3D model support was removed in v5.92.0.",
112+
"Encountered an unsupported media type. 3D model support was removed in v5.92.0. To add a 3D model to your app, use @google/model-viewer and use the ModelViewer component.",
113113
);
114114
}
115115

@@ -210,9 +210,9 @@ const PlayButton: React.FC<PlayButtonProps> = ({ onClick, isPlaying }) => {
210210
padding: 0,
211211
...(isHovering
212212
? {
213-
color: "rgb(53, 56, 64)",
214-
boxShadow: "rgb(4 17 29 / 25%) 0px 0px 8px 0px",
215-
}
213+
color: "rgb(53, 56, 64)",
214+
boxShadow: "rgb(4 17 29 / 25%) 0px 0px 8px 0px",
215+
}
216216
: {}),
217217
}}
218218
onClick={onClick}
@@ -305,14 +305,14 @@ const VideoPlayer = /* @__PURE__ */ (() =>
305305
try {
306306
videoRef.current.play();
307307
} catch (err) {
308-
console.error("error playing video", err);
308+
console.error("Error playing video", err);
309309
}
310310
} else {
311311
try {
312312
videoRef.current.pause();
313313
videoRef.current.currentTime = 0;
314314
} catch (err) {
315-
console.error("error pausing video", err);
315+
console.error("Error pausing video", err);
316316
}
317317
}
318318
}

0 commit comments

Comments
 (0)