@@ -66,7 +66,7 @@ const BREAKPOINTS = [
66
66
67
67
export const CCol = forwardRef < HTMLDivElement , CColProps > (
68
68
( { children, className, ...rest } , ref ) => {
69
- const repsonsiveCLassNames : string [ ] = [ ]
69
+ const repsonsiveClassNames : string [ ] = [ ]
70
70
71
71
BREAKPOINTS . forEach ( ( bp ) => {
72
72
const breakpoint = rest [ bp ]
@@ -75,34 +75,34 @@ export const CCol = forwardRef<HTMLDivElement, CColProps>(
75
75
const infix = bp === 'xs' ? '' : `-${ bp } `
76
76
77
77
if ( typeof breakpoint === 'number' || typeof breakpoint === 'string' ) {
78
- repsonsiveCLassNames . push ( `col${ infix } -${ breakpoint } ` )
78
+ repsonsiveClassNames . push ( `col${ infix } -${ breakpoint } ` )
79
79
}
80
80
81
81
if ( typeof breakpoint === 'boolean' ) {
82
- repsonsiveCLassNames . push ( `col${ infix } ` )
82
+ repsonsiveClassNames . push ( `col${ infix } ` )
83
83
}
84
84
85
85
if ( breakpoint && typeof breakpoint === 'object' ) {
86
86
if ( typeof breakpoint . span === 'number' || typeof breakpoint . span === 'string' ) {
87
- repsonsiveCLassNames . push ( `col${ infix } -${ breakpoint . span } ` )
87
+ repsonsiveClassNames . push ( `col${ infix } -${ breakpoint . span } ` )
88
88
}
89
89
90
90
if ( typeof breakpoint . span === 'boolean' ) {
91
- repsonsiveCLassNames . push ( `col${ infix } ` )
91
+ repsonsiveClassNames . push ( `col${ infix } ` )
92
92
}
93
93
94
94
if ( typeof breakpoint . order === 'number' || typeof breakpoint . order === 'string' ) {
95
- repsonsiveCLassNames . push ( `order${ infix } -${ breakpoint . order } ` )
95
+ repsonsiveClassNames . push ( `order${ infix } -${ breakpoint . order } ` )
96
96
}
97
97
98
98
if ( typeof breakpoint . offset === 'number' ) {
99
- repsonsiveCLassNames . push ( `offset${ infix } -${ breakpoint . offset } ` )
99
+ repsonsiveClassNames . push ( `offset${ infix } -${ breakpoint . offset } ` )
100
100
}
101
101
}
102
102
} )
103
103
104
104
const _className = classNames (
105
- repsonsiveCLassNames . length ? repsonsiveCLassNames : 'col' ,
105
+ repsonsiveClassNames . length ? repsonsiveClassNames : 'col' ,
106
106
className ,
107
107
)
108
108
0 commit comments