Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1461cd9

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

File tree

1 file changed

+1
-3
lines changed
Filter options

1 file changed

+1
-3
lines changed

‎src/CIcon.js

Copy file name to clipboardExpand all lines: src/CIcon.js
+1-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.