Skip to content

Commit

Permalink
chore: build in: optional text
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTRy committed Dec 11, 2023
1 parent 8a95392 commit 11af2bf
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/components/molecules/FancyMiniProfile/FancyMiniProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,20 @@ export default function FancyMiniProfile(props: TFancyMiniprofile) {
{/* The Profile Picture */}
<FancyProfilePicture rounded="complete" size={getSizeProps.imageSize} src={src || ''} />
{/* The wraper with the heading and subheading text */}
<TextWrapper $alignText={alignText} $paddingToedge={getSizeProps.paddingToEdge}>
{headingText && (
<Typography type="inlineElement" variant={getSizeProps.textSize} weight="bold">
{headingText}
</Typography>
)}
{subHeadingText && (
<Typography type="inlineElement" variant={getSizeProps.textSize}>
{subHeadingText}
</Typography>
)}
</TextWrapper>
{(headingText || subHeadingText) && (
<TextWrapper $alignText={alignText} $paddingToedge={getSizeProps.paddingToEdge}>
{headingText && (
<Typography type="inlineElement" variant={getSizeProps.textSize} weight="bold">
{headingText}
</Typography>
)}
{subHeadingText && (
<Typography type="inlineElement" variant={getSizeProps.textSize}>
{subHeadingText}
</Typography>
)}
</TextWrapper>
)}
</Wrapper>
);
}

0 comments on commit 11af2bf

Please sign in to comment.