File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const getValue = (fontSizes, key) => {
11
11
12
12
export const TypeScale = ( { reverse = true , ...props } ) => {
13
13
const { fontSizes = [ ] } = useTheme ( )
14
+ const fontSizesArray = Object . values ( fontSizes )
14
15
15
16
return (
16
17
< div
@@ -20,16 +21,16 @@ export const TypeScale = ({ reverse = true, ...props }) => {
20
21
alignItems : 'baseline' ,
21
22
} }
22
23
>
23
- { fontSizes . map ( ( n , i ) => {
24
- const key = reverse ? fontSizes . length - 1 - i : i
24
+ { fontSizesArray . map ( ( n , i ) => {
25
+ const key = reverse ? fontSizesArray . length - 1 - i : i
25
26
return (
26
27
< TypeStyle
27
28
key = { i }
28
29
fontSize = { key }
29
30
sx = { {
30
31
mr : 3 ,
31
32
} }
32
- children = { getValue ( fontSizes , key ) }
33
+ children = { getValue ( fontSizesArray , key ) }
33
34
{ ...props }
34
35
/>
35
36
)
You can’t perform that action at this time.
0 commit comments