Skip to content

Commit

Permalink
Small typo change
Browse files Browse the repository at this point in the history
  • Loading branch information
pomfrida committed Oct 19, 2020
1 parent 2dc0352 commit 441fdf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/core-react/src/Breadcrumbs/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Typography } from '../Typography'
import { Tooltip } from '../Tooltip'
import { breadcrumbs as tokens } from './Breadcrumbs.tokens'

type StyleProps = Pick<Props, 'maxWidth'>
type StyledProps = Pick<Props, 'maxWidth'>

const StyleTypography = styled(Typography)<StyleProps>`
const StyledTypography = styled(Typography)<StyledProps>`
&:hover {
text-decoration: underline;
color: ${tokens.colors.hover};
Expand Down Expand Up @@ -54,18 +54,18 @@ export const Breadcrumb = forwardRef<HTMLDivElement, Props>(function Breadcrumb(

const WithTooltip = (
<Tooltip title={children}>
<StyleTypography link variant="body_short" {...props}>
<StyledTypography link variant="body_short" {...props}>
{children}
</StyleTypography>
</StyledTypography>
</Tooltip>
)

return tooltip ? (
WithTooltip
) : (
<StyleTypography link variant="body_short" {...props}>
<StyledTypography link variant="body_short" {...props}>
{children}
</StyleTypography>
</StyledTypography>
)
})

Expand Down

0 comments on commit 441fdf7

Please sign in to comment.