Skip to content

Commit

Permalink
Made the image responsive for the mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
raka334 authored and vraravam committed Oct 17, 2024
1 parent c26e626 commit 14ff562
Show file tree
Hide file tree
Showing 4 changed files with 4,154 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/NonOptimizedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ type Props = {
alt: string;
width?: number;
height?: number;
layout?:string;
};

export default function NonOptimizedImage(props: Props) {
return <NextImage {...props} loader={customLoader} unoptimized={!props.width && !props.height} />;
return <NextImage {...props} loader={customLoader} unoptimized={!props.width && !props.height} layout={props.layout} />;
}
Loading

0 comments on commit 14ff562

Please sign in to comment.