From 11af2bf9e3435e01760d9102d5b1214420529e27 Mon Sep 17 00:00:00 2001 From: MrTRyy Date: Mon, 11 Dec 2023 16:13:17 +0100 Subject: [PATCH] chore: build in: optional text --- .../FancyMiniProfile/FancyMiniProfile.tsx | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/molecules/FancyMiniProfile/FancyMiniProfile.tsx b/src/components/molecules/FancyMiniProfile/FancyMiniProfile.tsx index 485d6bbbf..a4170ca4d 100644 --- a/src/components/molecules/FancyMiniProfile/FancyMiniProfile.tsx +++ b/src/components/molecules/FancyMiniProfile/FancyMiniProfile.tsx @@ -39,18 +39,20 @@ export default function FancyMiniProfile(props: TFancyMiniprofile) { {/* The Profile Picture */} {/* The wraper with the heading and subheading text */} - - {headingText && ( - - {headingText} - - )} - {subHeadingText && ( - - {subHeadingText} - - )} - + {(headingText || subHeadingText) && ( + + {headingText && ( + + {headingText} + + )} + {subHeadingText && ( + + {subHeadingText} + + )} + + )} ); }