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.
PageHeader.tsx
1 parent 8341462 commit 746cd92Copy full SHA for 746cd92
src/scripts/PageHeader.tsx
@@ -31,19 +31,19 @@ export type PageHeaderDetailLabelProps = TextProps;
31
export const PageHeaderDetailLabel: FC<PageHeaderDetailLabelProps> = ({
32
children,
33
...props
34
-}) => {
35
- return (
+}) =>
+ typeof children === 'string' ? (
36
<Text
37
- tag={typeof children !== 'string' ? 'div' : undefined}
38
category='title'
39
truncate
40
className='slds-m-bottom_xx-small'
41
{...props}
42
>
43
{children}
44
</Text>
+ ) : (
45
+ <>{children}</>
46
);
-};
47
48
/**
49
*
0 commit comments