From 75f000797dd9a7505b0086eb51c5d9e03f0089e7 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Thu, 2 Feb 2023 22:12:51 +0000 Subject: [PATCH] Extracted mail icon into component --- components/icons/MailIcon.tsx | 12 ++++++++++++ pages/about.tsx | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 components/icons/MailIcon.tsx diff --git a/components/icons/MailIcon.tsx b/components/icons/MailIcon.tsx new file mode 100644 index 0000000..85db943 --- /dev/null +++ b/components/icons/MailIcon.tsx @@ -0,0 +1,12 @@ +import {Props} from '@/types' + +export function MailIcon(props: Props) { + return ( + + ) +} \ No newline at end of file diff --git a/pages/about.tsx b/pages/about.tsx index 213485e..4515ed3 100644 --- a/pages/about.tsx +++ b/pages/about.tsx @@ -10,7 +10,7 @@ import { LinkedInIcon, TwitterIcon } from '@/components/icons/SocialIcons' -import {Props} from 'types' +import {MailIcon} from '@/components/icons/MailIcon' import photoOfMe from '@/public/static/images/photo-of-me.jpg' import awsCCPBadge from '@/public/static/images/aws-certified-cloud-practitioner-badge.png' @@ -39,17 +39,6 @@ function SocialLink({ ) } -function MailIcon(props: Props) { - return ( - - ) -} - export default function About() { return ( <>