Skip to content

Commit 62f14e7

Browse files
authored
remove logging
1 parent f7f804a commit 62f14e7

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/theme/IdealImage/index.tsx

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,8 @@ export default function IdealImage(
112112

113113
// In dev env just use regular img with original file
114114
if (typeof img === "string" || (typeof img === "object" && img !== null && "default" in img)) {
115-
console.log('=== Early Return Debug ===');
116-
console.log('Image type:', typeof img);
117-
console.log('Has default property:', typeof img === "object" && img !== null && "default" in img);
118-
console.log('Image value:', img);
119115
const isGifInEarlyReturn = typeof img === "string" ? img.endsWith('.gif') :
120116
(typeof img === "object" && img !== null && typeof img.default === "string" && img.default.endsWith('.gif'));
121-
console.log('Is this a GIF?', isGifInEarlyReturn);
122-
123117
const gifStyles = isGifInEarlyReturn ? (
124118
size === "lg"
125119
? {
@@ -149,10 +143,6 @@ export default function IdealImage(
149143
}
150144
) : {};
151145

152-
console.log('GIF styles being applied:', gifStyles);
153-
console.log('Size parameter:', size);
154-
console.log('Max width should be:', MAX_SIZE_FILTERS[size]);
155-
156146
return (
157147
<div style={{
158148
position: "relative",
@@ -208,18 +198,10 @@ export default function IdealImage(
208198
// Check if current image is a GIF
209199
const isCurrentGif = currentImage.path?.toLowerCase().endsWith('.gif') || false;
210200

211-
// Check if current image is a GIF
212-
console.log('Current image object:', currentImage);
213-
console.log('Current image path:', currentImage.path);
214-
console.log('All images in set:', img.src.images);
215-
216201
const isGif = currentImage.path?.toLowerCase().endsWith('.gif') || false;
217202

218-
console.log('Is GIF detected:', isGif);
219-
220203
// Debug logging
221204
if (isGif) {
222-
console.log('GIF detected:', {
223205
path: currentImage.path,
224206
size: size,
225207
maxWidth: MAX_SIZE_FILTERS[size],
@@ -260,17 +242,9 @@ export default function IdealImage(
260242
}),
261243
};
262244

263-
// Debug logging after styles are created
264-
console.log('=== IdealImage Debug ===');
265-
console.log('Current image path:', currentImage.path);
266-
console.log('Is GIF detected:', isCurrentGif);
267-
console.log('Size parameter:', size);
268-
console.log('Max width for size:', MAX_SIZE_FILTERS[size]);
269-
console.log('Current image dimensions:', {
270245
width: currentImage.width,
271246
height: currentImage.height
272247
});
273-
console.log('Image styles being applied:', imageStyles);
274248

275249
const containerStyles: React.CSSProperties = {
276250
position: "relative",
@@ -321,7 +295,6 @@ export default function IdealImage(
321295
}, 1000); // 1 second timeout
322296

323297
const testSpeed = async () => {
324-
console.log("Downloading...");
325298
const url = currentImage.path!;
326299
const startTime = performance.now();
327300

@@ -388,4 +361,4 @@ export default function IdealImage(
388361
</div>
389362
</div>
390363
);
391-
}
364+
}

0 commit comments

Comments
 (0)