diff --git a/web/components/profile-about.tsx b/web/components/profile-about.tsx index 5e0c1e7f..1d81ce7d 100644 --- a/web/components/profile-about.tsx +++ b/web/components/profile-about.tsx @@ -21,7 +21,7 @@ import {Profile} from 'common/profiles/profile' import {Socials} from 'common/socials' import {UserActivity} from 'common/user' import {capitalize} from 'lodash' -import {Home, Leaf} from 'lucide-react' +import {BarChart2, Home, Leaf} from 'lucide-react' import React, {ReactNode} from 'react' import {BiSolidDrink} from 'react-icons/bi' import {BsPersonVcard} from 'react-icons/bs' @@ -52,30 +52,36 @@ export function AboutRow(props: { preText?: string suffix?: string | null testId?: string + children?: ReactNode }) { const {icon, text, preText, suffix, testId} = props const t = useT() - if (!text?.length && !preText && !suffix) { - return <>> - } - let formattedText = '' - if (preText) { - formattedText += preText - } - if (text?.length) { - formattedText += stringOrStringArrayToText({ - text: text, - preText: preText, - asSentence: false, - capitalizeFirstLetterOption: true, - t: t, - }) + let children = props.children + if (!children) { + if (!text?.length && !preText && !suffix) { + return <>> + } + let formattedText = '' + if (preText) { + formattedText += preText + } + if (text?.length) { + formattedText += stringOrStringArrayToText({ + text: text, + preText: preText, + asSentence: false, + capitalizeFirstLetterOption: true, + t: t, + }) + } + children =