diff --git a/src/Components/Profile/ContactInfo.tsx b/src/Components/Profile/ContactInfo.tsx index bef32080..f693b331 100644 --- a/src/Components/Profile/ContactInfo.tsx +++ b/src/Components/Profile/ContactInfo.tsx @@ -1,31 +1,34 @@ +import { Link } from "react-router-dom"; import { useAssetApi } from "../AppShell/hooks/useAssets"; -const ContactInfo = ({ email, telephone, name, avatar } : {email: string, telephone: string, name: string, avatar: string}) => { +const ContactInfo = ({ email, telephone, name, avatar, link }: { email: string, telephone: string, name: string, avatar: string, link?: string }) => { const assetsApi = useAssetApi(); - return( + return (

Du hast Fragen?

{avatar && ( -
-
-
- {name} + +
+
+
+ {name} +
-
+ )}

{name}

{email && (

+ className="tw-mt-2 tw-text-green-500 tw-inline-flex tw-items-center"> + strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" + className="tw-w-4 tw-h-4 tw-mr-1"> @@ -37,12 +40,12 @@ const ContactInfo = ({ email, telephone, name, avatar } : {email: string, teleph {telephone && (

+ className="tw-mt-2 tw-text-green-500 tw-inline-flex tw-items-center tw-whitespace-nowrap"> + strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" + className="tw-w-4 tw-h-4 tw-mr-1"> + d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z" /> {telephone} @@ -54,4 +57,15 @@ const ContactInfo = ({ email, telephone, name, avatar } : {email: string, teleph ) } -export default ContactInfo; \ No newline at end of file +export default ContactInfo; + +const ConditionalLink = ({ url, children }) => { + if (url) { + return ( + + {children} + + ); + } + return children; +}; \ No newline at end of file diff --git a/src/Components/Profile/OverlayItemProfile.tsx b/src/Components/Profile/OverlayItemProfile.tsx index f81f5ad3..3cb6cb38 100644 --- a/src/Components/Profile/OverlayItemProfile.tsx +++ b/src/Components/Profile/OverlayItemProfile.tsx @@ -325,7 +325,7 @@ export function OverlayItemProfile({ userType }: { userType: string }) { {template == "onepager" && <> {item.user_created.first_name && ( - + )} {/* Description Section */}