From c48e8819bdd09d4b064c2786876c54df80b55e5a Mon Sep 17 00:00:00 2001 From: deepanshu verma Date: Wed, 11 Sep 2024 04:12:16 -0700 Subject: [PATCH] Fix: #976 --- components/Nav/Social.tsx | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/components/Nav/Social.tsx b/components/Nav/Social.tsx index 5611be37..998d34e9 100644 --- a/components/Nav/Social.tsx +++ b/components/Nav/Social.tsx @@ -41,30 +41,22 @@ const SocialLink = styled(Link).attrs((/* props */) => ({ } `; -const StyledIcon = styled.div<{ $height?: number; $width?: number }>` +const StyledIcon = styled.div<{ $height?: number; $width?: number; $bgColor?: string }>` && { width: ${p => rem(Number(p.$width))}; height: ${p => rem(Number(p.$height))}; + background-color: ${p => p.$bgColor || 'transparent'}; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; } `; -// const Twitter = () => ( -// -// twitter-logo -// -// -// -// -// -// ) - const Social = (props: React.ComponentProps) => ( - {/* - - */} - +