Skip to content

Commit

Permalink
fix(Typography): fix issue with TypeWeight rendering (#2770)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandra Davila <aledavila@ibm.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 9, 2022
1 parent b2b82b4 commit 1bf5f52
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/TypeWeight/TypeWeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class TypeWeight extends React.Component {
return (
<div className="bx--row">
<div className="bx--col-lg-8 bx--col-md-6 type-weight">
<div dangerouslySetInnerHTML={{ __html: typeTypes }} />
<div dangerouslySetInnerHTML={{ __html: typeTypes.default }} />
</div>
</div>
);
Expand All @@ -24,7 +24,9 @@ export default class TypeWeight extends React.Component {
return (
<div className="bx--row">
<div className="bx--col-lg-8 bx--col-md-6 type-weight">
<div dangerouslySetInnerHTML={{ __html: typeWeightItalic }} />
<div
dangerouslySetInnerHTML={{ __html: typeWeightItalic.default }}
/>
</div>
</div>
);
Expand All @@ -33,7 +35,7 @@ export default class TypeWeight extends React.Component {
return (
<div className="bx--row">
<div className="bx--col-lg-8 bx--col-md-6 type-weight">
<div dangerouslySetInnerHTML={{ __html: typeWeight }} />
<div dangerouslySetInnerHTML={{ __html: typeWeight.default }} />
</div>
</div>
);
Expand Down

1 comment on commit 1bf5f52

@vercel
Copy link

@vercel vercel bot commented on 1bf5f52 Mar 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.