8000 fix: change 'replaceAll' func to 'replace' due to transpilation error · coreui/coreui-icons-react@1461cd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1461cd9

Browse files
committed
fix: change 'replaceAll' func to 'replace' due to transpilation error
1 parent 1d9c022 commit 1461cd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CIcon.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ const colog = (...args) => {
1212
const toCamelCase = (str) => {
1313
return str.replace(/([-_][a-z0-9])/ig, ($1) => {
1414
return $1.toUpperCase()
15-
}).replaceAll('-', '')
15+
}).replace(/-/ig, '')
1616
}
1717

1818
//component - CoreUI / CIcon
1919
const CIcon = props => {
2020

2121
const {
2222
className,
23-
//
2423
name,
2524
content,
2625
customClasses,
@@ -113,7 +112,6 @@ const CIcon = props => {
113112

114113
CIcon.propTypes = {
115114
className: PropTypes.string,
116-
//
117115
name: PropTypes.string,
118116
content: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
119117
size: PropTypes.oneOf([

0 commit comments

Comments
 (0)
0