Skip to content

Commit

Permalink
fix: status divider logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink committed Feb 12, 2025
1 parent fa641f1 commit dba4c75
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/status/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ const Status: FC<StatusProps> = ({ title, subtitle, size = 12, family = 'seconda
</Text>
)}

{!!title && !!subtitle && <Divider orientation='vertical' length={`${size - 2}px`} type={statusType} />}

{!!subtitle && (
<TextWrapper>
<Divider orientation='vertical' length={`${size - 2}px`} type={statusType} />
<Text size={size - 2} family={family} color={theme.text[`${statusType}_secondary`]}>
{subtitle}
</Text>
</TextWrapper>
<Text size={size - 2} family={family} color={theme.text[`${statusType}_secondary`]}>
{subtitle}
</Text>
)}
</TextWrapper>
)}
Expand Down

0 comments on commit dba4c75

Please sign in to comment.