File tree 1 file changed +2
-2
lines changed
src/react-chayns-accordion/component
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export default class Accordion extends PureComponent {
317
317
} ) }
318
318
>
319
319
{
320
- chayns . utils . isString ( icon ) || icon . iconName
320
+ typeof icon === 'string' || icon . iconName
321
321
? < Icon icon = { icon } />
322
322
: icon
323
323
}
@@ -328,7 +328,7 @@ export default class Accordion extends PureComponent {
328
328
className = "accordion__head__title"
329
329
style = { {
330
330
...( noIcon ? { paddingLeft : '10px' } : null ) ,
331
- ...( head && ! chayns . utils . isString ( head . open ) && chayns . utils . isString ( head . close ) && isWrapped ? { fontWeight : 'inherit' } : null ) ,
331
+ ...( head && typeof head . open !== 'string' && typeof head . close === 'string' && isWrapped ? { fontWeight : 'inherit' } : null ) ,
332
332
} }
333
333
>
334
334
{ /* eslint-disable-next-line no-nested-ternary */ }
You can’t perform that action at this time.
0 commit comments