|
@ -13,10 +13,10 @@ const StyledTooltip = styled(Tooltip)` |
|
|
|
|
|
|
|
|
export const tooltip = (text: string) => <StyledTooltip>{text}</StyledTooltip>; |
|
|
export const tooltip = (text: string) => <StyledTooltip>{text}</StyledTooltip>; |
|
|
|
|
|
|
|
|
const CustomTooltip = ({ children, text, delay, placement, ...rest }: any) => { |
|
|
const CustomTooltip = ({ children, text, delay, placement, disabled, ...rest }: any) => { |
|
|
return ( |
|
|
return ( |
|
|
<Whisper |
|
|
<Whisper |
|
|
trigger="hover" |
|
|
trigger={disabled ? 'none' : 'hover'} |
|
|
delay={delay || 250} |
|
|
delay={delay || 250} |
|
|
speaker={tooltip(text)} |
|
|
speaker={tooltip(text)} |
|
|
placement={placement || 'top'} |
|
|
placement={placement || 'top'} |
|
|