Skip to content

Commit 05ae011

Browse files
committed
Remove defaultProps from BreakableText
Signed-off-by: cs-308-2023 <[email protected]>
1 parent b7578bc commit 05ae011

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/jaeger-ui/src/components/common/BreakableText.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ type Props = {
2424
wordRegexp?: RegExp;
2525
};
2626

27-
export default function BreakableText(props: Props) {
28-
const { className, text, wordRegexp = WORD_RX } = props;
27+
export default function BreakableText({ className = 'BreakableText', text, wordRegexp = WORD_RX }: Props) {
2928
if (!text) {
3029
return typeof text === 'string' ? text : null;
3130
}
@@ -43,8 +42,3 @@ export default function BreakableText(props: Props) {
4342
}
4443
return spans;
4544
}
46-
47-
BreakableText.defaultProps = {
48-
className: 'BreakableText',
49-
wordRegexp: WORD_RX,
50-
};

0 commit comments

Comments
 (0)