We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7578bc commit 05ae011Copy full SHA for 05ae011
packages/jaeger-ui/src/components/common/BreakableText.tsx
@@ -24,8 +24,7 @@ type Props = {
24
wordRegexp?: RegExp;
25
};
26
27
-export default function BreakableText(props: Props) {
28
- const { className, text, wordRegexp = WORD_RX } = props;
+export default function BreakableText({ className = 'BreakableText', text, wordRegexp = WORD_RX }: Props) {
29
if (!text) {
30
return typeof text === 'string' ? text : null;
31
}
@@ -43,8 +42,3 @@ export default function BreakableText(props: Props) {
43
42
44
return spans;
45
46
-
47
-BreakableText.defaultProps = {
48
- className: 'BreakableText',
49
- wordRegexp: WORD_RX,
50
-};
0 commit comments