Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Apr 3, 2024
1 parent 6940a13 commit 2ac3dce
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions apps/exhibition-live/components/utils/image/Img.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ import Image, { ImageProps } from "next/image";
import { PUBLIC_BASE_PATH } from "../../config";
import { useEffect } from "react";

export const Img = ({ src, alt, ...rest }: ImageProps) => {
useEffect(() => {
console.log({ PUBLIC_BASE_PATH, env: process.env });
}, []);
return (
<Image
src={`${PUBLIC_BASE_PATH}/${
typeof src === "string" ? src : "Icons/no-image-placeholder.png"
}`}
alt={alt}
{...rest}
/>
);
};
export const Img = ({ src, alt, ...rest }: ImageProps) => (
<Image
src={`${PUBLIC_BASE_PATH}/${
typeof src === "string" ? src : "Icons/no-image-placeholder.png"
}`}
alt={alt}
{...rest}
/>
);

0 comments on commit 2ac3dce

Please sign in to comment.