Skip to content

Commit

Permalink
bug: fix status label
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 2, 2023
1 parent 7800f92 commit fe7f4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/designSystem/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Status = ({ type, className, label }: StatusProps) => {
<svg height={STATUS_SIZE} width={STATUS_SIZE}>
<circle cx="6" cy="6" r="5" fill="none" stroke={config.color} strokeWidth="2" />
</svg>
{!!label && <Typography color="disabled">{translate(config.label)}</Typography>}
<Typography color="disabled">{label ?? translate(config.label)}</Typography>
</Container>
)
default:
Expand All @@ -61,7 +61,7 @@ export const Status = ({ type, className, label }: StatusProps) => {
<svg height={STATUS_SIZE} width={STATUS_SIZE}>
<circle cx="6" cy="6" r="6" fill={config.color} />
</svg>
{!!label && <Typography color="textSecondary">{translate(config.label)}</Typography>}
<Typography color="textSecondary">{label ?? translate(config.label)}</Typography>
</Container>
)
}
Expand Down

0 comments on commit fe7f4d9

Please sign in to comment.