From 0563135ae4aa97af62e358f8f0120d666c488100 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sat, 20 Jul 2024 14:10:11 +0200 Subject: [PATCH] small layout optimization for onepager --- src/Components/Profile/ContactInfo.tsx | 2 +- src/Components/Profile/ProfileSubHeader.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Profile/ContactInfo.tsx b/src/Components/Profile/ContactInfo.tsx index 94b0a286..9b397f28 100644 --- a/src/Components/Profile/ContactInfo.tsx +++ b/src/Components/Profile/ContactInfo.tsx @@ -5,7 +5,7 @@ const ContactInfo = ({ email, telephone, name, avatar, link }: { email: string, const assetsApi = useAssetApi(); return ( -
+

Du hast Fragen?

{avatar && ( diff --git a/src/Components/Profile/ProfileSubHeader.tsx b/src/Components/Profile/ProfileSubHeader.tsx index 67492365..60835d5a 100644 --- a/src/Components/Profile/ProfileSubHeader.tsx +++ b/src/Components/Profile/ProfileSubHeader.tsx @@ -25,9 +25,9 @@ const statusMapping = { const SubHeader = ({ type, status, url, title }) => (
-
- {type}{(status && status !== 'active') ? ` (${statusMapping[status]})` : ''} -
+ {type &&
+ {type}{(status && status !== 'active') ? ` (${statusMapping[status]})` : ''} +
}