From 6724bf4f0a9b194d11ae3e17a5def018526680d6 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Tue, 16 Jul 2024 15:58:21 +0200 Subject: [PATCH] layout fix --- src/Components/Profile/ContactInfo.tsx | 4 +++- src/Components/Profile/OverlayItemProfile.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Components/Profile/ContactInfo.tsx b/src/Components/Profile/ContactInfo.tsx index f693b331..65900401 100644 --- a/src/Components/Profile/ContactInfo.tsx +++ b/src/Components/Profile/ContactInfo.tsx @@ -60,9 +60,11 @@ const ContactInfo = ({ email, telephone, name, avatar, link }: { email: string, export default ContactInfo; const ConditionalLink = ({ url, children }) => { + let params = new URLSearchParams(window.location.search); + if (url) { return ( - + {children} ); diff --git a/src/Components/Profile/OverlayItemProfile.tsx b/src/Components/Profile/OverlayItemProfile.tsx index d8b2b0e7..f0ad9d19 100644 --- a/src/Components/Profile/OverlayItemProfile.tsx +++ b/src/Components/Profile/OverlayItemProfile.tsx @@ -289,6 +289,8 @@ export function OverlayItemProfile({ userType }: { userType: string }) { setTemplate(item.layer?.itemType.template || userType); }, [userType, item]) + + return ( <> {item && @@ -413,7 +415,7 @@ export function OverlayItemProfile({ userType }: { userType: string }) { updateActiveTab(7)} />
-
+
{relations && relations.map(i =>