Skip to content

Commit 692f2ba

Browse files
committed
fixed issue with props in documentation.
1 parent 2ebf90e commit 692f2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/module/src/LongTextTooltip/LongTextTooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Tooltip, TooltipPosition, TooltipProps } from '@patternfly/react-core';
22
import React from 'react';
33

44
export interface LongTextTooltipProps extends Omit<TooltipProps, 'content'> {
5-
/** Content to display in the tool tip */
5+
/** Content to display */
66
content?: string;
77
/** Maximum length of the content being displayed in pixels */
88
maxLength?: number;
@@ -18,7 +18,7 @@ const LongTextTooltip: React.FC<LongTextTooltipProps> = ({
1818
tooltipMaxWidth = '50vw',
1919
tooltipPosition = TooltipPosition.top,
2020
...rest
21-
}) => {
21+
}: LongTextTooltipProps) => {
2222
const truncate = (str: string, max: number) => (str.length > max ? str.substr(0, max - 1) + '…' : str);
2323

2424
return content.length > maxLength ? (

0 commit comments

Comments
 (0)