diff --git a/packages/components/src/CardProfile/CardDetailsMemberProfile.tsx b/packages/components/src/CardProfile/CardDetailsMemberProfile.tsx index d21c25dec0..f4fafadaab 100644 --- a/packages/components/src/CardProfile/CardDetailsMemberProfile.tsx +++ b/packages/components/src/CardProfile/CardDetailsMemberProfile.tsx @@ -8,9 +8,10 @@ import type { IProfileCreator } from 'oa-shared' interface IProps { creator: IProfileCreator + isLink: boolean } -export const CardDetailsMemberProfile = ({ creator }: IProps) => { +export const CardDetailsMemberProfile = ({ creator, isLink }: IProps) => { const { _id, badges, countryCode, profileType, userImage } = creator return ( @@ -55,7 +56,7 @@ export const CardDetailsMemberProfile = ({ creator }: IProps) => { isVerified: badges?.verified || false, }} sx={{ alignSelf: 'flex-start' }} - isLink={false} + isLink={isLink} /> { +export const CardDetailsSpaceProfile = ({ creator, isLink }: IProps) => { const { _id, about, badges, countryCode, coverImage, profileType, subType } = creator @@ -68,7 +69,7 @@ export const CardDetailsSpaceProfile = ({ creator }: IProps) => { isSupporter: badges?.supporter || false, }} sx={{ alignSelf: 'flex-start' }} - isLink={false} + isLink={isLink} /> {subType && ( diff --git a/packages/components/src/CardProfile/CardProfile.tsx b/packages/components/src/CardProfile/CardProfile.tsx index 2fe3311b3c..69f5a69b39 100644 --- a/packages/components/src/CardProfile/CardProfile.tsx +++ b/packages/components/src/CardProfile/CardProfile.tsx @@ -8,17 +8,22 @@ import type { MapListItem } from '../types/common' export interface IProps { item: MapListItem + isLink?: boolean } -export const CardProfile = ({ item }: IProps) => { +export const CardProfile = ({ item, isLink = false }: IProps) => { const { creator } = item const isMember = creator?.profileType === 'member' return ( - {isMember && } - {!isMember && creator && } + {isMember && ( + + )} + {!isMember && creator && ( + + )} {!creator && } ) diff --git a/packages/components/src/PinProfile/PinProfile.tsx b/packages/components/src/PinProfile/PinProfile.tsx index b4d5bf282d..5c6c8443f7 100644 --- a/packages/components/src/PinProfile/PinProfile.tsx +++ b/packages/components/src/PinProfile/PinProfile.tsx @@ -32,7 +32,7 @@ export const PinProfile = (props: IProps) => { - + {!isMember && creator?.isContactableByPublic && (