1- import 'react-app-polyfill/ie11' ; // For IE 11 support
2- import 'react-app-polyfill/stable' ;
31import React from 'react' ;
42import PropTypes from 'prop-types' ;
53import classNames from 'classnames' ;
6- import { mapToCssModules , colog } from '@coreui/react ' ;
4+ import { mapToCssModules , colog } from './Shared/helper ' ;
75import style from './CIcon.module.css' ;
86
97//component - CoreUI / CIconRaw
@@ -29,12 +27,12 @@ const CIconRaw = props=>{
2927 return str . replace ( / ( [ - _ ] [ a - z 0 - 9 ] ) / ig, ( $1 ) => {
3028 return $1 . toUpperCase ( ) . replace ( '-' , '' )
3129 } )
32- }
30+ } ;
3331
3432 //vars
3533
3634 const iconName = ( ( ) => {
37- const iconNameIsKebabCase = name && name . includes ( '-' )
35+ const iconNameIsKebabCase = name && name . includes ( '-' ) ;
3836 return iconNameIsKebabCase ? toCamelCase ( name ) : name
3937 } ) ( ) ;
4038 const titleCode = ( ( ) => {
@@ -62,7 +60,7 @@ const CIconRaw = props=>{
6260 return attributes . viewBox || `0 0 ${ scale } `
6361 } ) ( ) ;
6462 const computedSize = ( ( ) => {
65- const addCustom = ! size && ( attributes . width || attributes . height )
63+ const addCustom = ! size && ( attributes . width || attributes . height ) ;
6664 return size === 'custom' || addCustom ? 'custom-size' : size
6765 } ) ( ) ;
6866 //console.log(iconName, computedSize)
@@ -86,7 +84,7 @@ const CIconRaw = props=>{
8684 computedSize ? `c-icon-${ computedSize } ` : ''
8785 ) , style ) ;
8886
89- const classes = customClasses || ( class1 + ' ' + class2 )
87+ const classes = customClasses || ( class1 + ' ' + class2 ) ;
9088
9189 //console.log(code, viewBox, classes, titleCode+' - '+iconCode);
9290 //v-html={titleCode+iconCode}
@@ -118,7 +116,7 @@ const CIconRaw = props=>{
118116 </ React . Fragment >
119117 ) ;
120118
121- }
119+ } ;
122120
123121CIconRaw . propTypes = {
124122 tag : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . string ] ) ,
0 commit comments