Skip to content

Commit

Permalink
feat: add unknown type trans
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaeyeonAhn committed Nov 17, 2024
1 parent f366a8e commit b22cd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/common/components/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getColorFromTheme = (theme: Theme, colorString: ThemeColors) => {
const colorValue = theme.colors[colorKey as keyof Theme["colors"]];

if (typeof colorValue === "object" && shade in colorValue) {
return colorValue[shade as keyof typeof colorValue];
return colorValue[shade as unknown as keyof typeof colorValue];
}
}

Expand Down

0 comments on commit b22cd52

Please sign in to comment.