From 2ad51ad3d75815d9fb4b8f4c4576418cf3a69f0e Mon Sep 17 00:00:00 2001 From: Aidan Honor Date: Wed, 26 Mar 2025 23:19:33 -0400 Subject: [PATCH] feat: icons in buttons --- components/objects/Button.tsx | 8 +++++--- components/pages/About.tsx | 3 ++- components/pages/Home.tsx | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/objects/Button.tsx b/components/objects/Button.tsx index ef82124..e6dedbf 100644 --- a/components/objects/Button.tsx +++ b/components/objects/Button.tsx @@ -4,14 +4,16 @@ import Link from 'next/link'; interface MusicInfoButtonProps { href: string; label: string; + icon?: React.ElementType; } -const MusicInfoButton: React.FC = ({ href, label }) => { +const MusicInfoButton: React.FC = ({ href, label, icon }) => { return ( - + {icon && React.createElement(icon, { size: 20, className: "mr-2" })} {label} ); diff --git a/components/pages/About.tsx b/components/pages/About.tsx index 2e32cb1..0101b06 100644 --- a/components/pages/About.tsx +++ b/components/pages/About.tsx @@ -1,6 +1,6 @@ "use client" -import { User } from 'lucide-react' +import { User, Smartphone } from 'lucide-react' import FeaturedRepos from '../widgets/FeaturedRepos' import Image from 'next/image' import { useState } from 'react' @@ -52,6 +52,7 @@ export default function About() {