File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ class Hint extends Component<HintProps, HintState> {
423
423
// }
424
424
425
425
renderHintTip ( ) {
426
- const { position, color} = this . props ;
426
+ const { position, color = DEFAULT_COLOR } = this . props ;
427
427
const source = this . useSideTip ? sideTip : middleTip ;
428
428
const flipVertically = position === HintPositions . TOP ;
429
429
const flipHorizontally = this . getTargetPositionOnScreen ( ) === TARGET_POSITIONS . RIGHT ;
@@ -433,7 +433,7 @@ class Hint extends Component<HintProps, HintState> {
433
433
434
434
return (
435
435
< Image
436
- tintColor = { color || DEFAULT_COLOR }
436
+ tintColor = { color }
437
437
source = { source }
438
438
style = { [ styles . hintTip , this . getTipPosition ( ) , flipStyle ] }
439
439
/>
@@ -447,7 +447,7 @@ class Hint extends Component<HintProps, HintState> {
447
447
icon,
448
448
iconStyle,
449
449
borderRadius,
450
- color,
450
+ color = DEFAULT_COLOR ,
451
451
customContent,
452
452
removePaddings,
453
453
enableShadow,
@@ -464,7 +464,7 @@ class Hint extends Component<HintProps, HintState> {
464
464
styles . hint ,
465
465
! removePaddings && styles . hintPaddings ,
466
466
visible && enableShadow && styles . containerShadow ,
467
- { backgroundColor : color } ,
467
+ { backgroundColor : color } ,
468
468
! _ . isUndefined ( borderRadius ) && { borderRadius}
469
469
] }
470
470
ref = { this . setHintRef }
You can’t perform that action at this time.
0 commit comments