We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308b602 commit 13e52cbCopy full SHA for 13e52cb
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@solved-ac/ui-react",
3
- "version": "0.2.0",
+ "version": "0.2.1",
4
"description": "React component library used by solved.ac",
5
"author": "shiftpsh",
6
"license": "MIT",
src/components/Typo.tsx
@@ -124,8 +124,8 @@ interface TypoContainerProps {
124
const TypoContainer = styled.span<TypoContainerProps>`
125
${({ theme, variant }) =>
126
typeof variant === 'string'
127
- ? variants[variant]
128
- : variant.map((v) => variants[v](theme))}
+ ? variants(theme)[variant]
+ : variant.map((v) => variants(theme)[v])}
129
`
130
131
export interface TypoProps {
0 commit comments