Skip to content

Commit

Permalink
fix(docs): typography matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 24, 2025
1 parent 564bb20 commit f6961e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/typography-mapping-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export async function TypographyMappingTable({ mappings }: TypographyMappingTabl
const tableItems: TypographyMapping[] = mappings.map((item) => ({
previousTokenId: item.previousTokenId,
newTextStyleIds: item.newTextStyleIds.map((id) => {
const typography = rootage.componentSpecEntities.typography.body.find(
({ body }) => "textStyle" in body && body.textStyle === id,
const typography = rootage.componentSpecEntities.typography.body.find(({ variants }) =>
variants.some((variant) => variant.name === "textStyle" && variant.value === id),
);

if (!typography) {
Expand Down

0 comments on commit f6961e9

Please sign in to comment.