From 5e970125eff5c07a6d894a3fd52145ad6236306b Mon Sep 17 00:00:00 2001 From: michey Date: Thu, 6 May 2021 21:10:55 +0300 Subject: [PATCH] Fix social buttons --- .../personal-card/elements/ContactsButtons.tsx | 16 +++++++++------- pages/index.tsx | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/components/personal-card/elements/ContactsButtons.tsx b/components/personal-card/elements/ContactsButtons.tsx index 0cfe13d..f0f97b7 100644 --- a/components/personal-card/elements/ContactsButtons.tsx +++ b/components/personal-card/elements/ContactsButtons.tsx @@ -30,15 +30,17 @@ const typeToIcon: { [key in ContactType]: [IconDefinition, string?] } = { const ContactComp = ({ id, type }: Contact) => { const iconDescr = typeToIcon[type]; return ( - - - +
+ + + +
); }; export default ({ contacts }: Props) => ( -
{contacts.map((c) => ContactComp(c))}
+
{contacts.map((c) => ContactComp(c))}
); diff --git a/pages/index.tsx b/pages/index.tsx index 35cc3fa..2299110 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,7 +4,7 @@ import PersonalCard from '../components/personal-card/PersonalCard'; const Home = () => { return ( -
+