Skip to content

Commit

Permalink
change React.FC and make use NextPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Abidoyesimze committed Nov 23, 2024
1 parent 54ba3a5 commit d27ffd7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from "next/image";
import { NextPage } from "next";
import { IconType } from "react-icons";
import { FaEnvelope, FaGithub, FaLinkedin, FaMapMarkerAlt, FaTwitter } from "react-icons/fa";

Expand Down Expand Up @@ -65,7 +66,7 @@ const socialLinks: SocialLink[] = [
},
];

const SimzeProfileCard: React.FC = () => {
const SimzeProfileCard: NextPage = () => {
const profile: ProfileData = {
name: "Similoluwa Abidoye",
title: "Full Stack Developer",
Expand Down Expand Up @@ -96,8 +97,8 @@ const SimzeProfileCard: React.FC = () => {
<Image
src={profile.avatar}
alt={profile.name}
width={128} // Corresponds to w-32 class (32 * 0.25rem = 128px)
height={128} // Corresponds to h-32 class (32 * 0.25rem = 128px)
width={128}
height={128}
className="w-32 h-32 rounded-full mb-4 border-4 border-gray-200 dark:border-gray-700 object-cover"
/>

Expand Down

0 comments on commit d27ffd7

Please sign in to comment.