Skip to content

Commit

Permalink
Removed all usages of legacy next/image
Browse files Browse the repository at this point in the history
  • Loading branch information
dtran421 committed Jan 17, 2024
1 parent 5a944e9 commit 7916655
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/app/blog/[slug]/blog-post-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"use client";

import Image from "next/legacy/image";
import Image from "next/image";
import moment from "moment";
import { FiTag } from "react-icons/fi";

Expand Down Expand Up @@ -42,9 +42,10 @@ const ProfileHeader = ({ publishDate, inspectorProps }: ProfileHeaderProps) => (
</p>
</section>
</div>
<div>
{/* // TODO: implement this */}
{/* <div>
<p>Also Published:</p>
</div>
</div> */}
</div>
);

Expand Down
4 changes: 2 additions & 2 deletions src/components/Portfolio/LangProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from "next/legacy/image";
import Image from "next/image";

export type LangProfileProps = {
name: string;
Expand All @@ -11,7 +11,7 @@ const LangProfile = ({ name, imgSrc, accentColor, darkText }: LangProfileProps)
<div id="lang-profile" className="flex flex-col items-center">
<div className="flex justify-center mt-4 mb-2 bg-zinc-300/30 dark:bg-zinc-700/30 dark-transition backdrop-blur-md rounded-full shadow-xl p-5 lg:p-6 w-20 h-20 lg:w-24 lg:h-24">
<div className="flex justify-center items-center">
<Image src={imgSrc} alt={`${name} logo`} width={54} height={54} layout="intrinsic" />
<Image src={imgSrc} alt={`${name} logo`} width={54} height={54} />
</div>
</div>
<p
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projects/AppDemo/MobileImage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from "next/legacy/image";
import Image from "next/image";

type MobileImageProps = {
page: string | null;
Expand Down

0 comments on commit 7916655

Please sign in to comment.