Skip to content

Commit 13e52cb

Browse files
committed
fix: typography
1 parent 308b602 commit 13e52cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solved-ac/ui-react",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "React component library used by solved.ac",
55
"author": "shiftpsh",
66
"license": "MIT",

src/components/Typo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ interface TypoContainerProps {
124124
const TypoContainer = styled.span<TypoContainerProps>`
125125
${({ theme, variant }) =>
126126
typeof variant === 'string'
127-
? variants[variant]
128-
: variant.map((v) => variants[v](theme))}
127+
? variants(theme)[variant]
128+
: variant.map((v) => variants(theme)[v])}
129129
`
130130

131131
export interface TypoProps {

0 commit comments

Comments
 (0)