Skip to content

Commit 746cd92

Browse files
(Text): revert changes in PageHeader.tsx
1 parent 8341462 commit 746cd92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/PageHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ export type PageHeaderDetailLabelProps = TextProps;
3131
export const PageHeaderDetailLabel: FC<PageHeaderDetailLabelProps> = ({
3232
children,
3333
...props
34-
}) => {
35-
return (
34+
}) =>
35+
typeof children === 'string' ? (
3636
<Text
37-
tag={typeof children !== 'string' ? 'div' : undefined}
3837
category='title'
3938
truncate
4039
className='slds-m-bottom_xx-small'
4140
{...props}
4241
>
4342
{children}
4443
</Text>
44+
) : (
45+
<>{children}</>
4546
);
46-
};
4747

4848
/**
4949
*

0 commit comments

Comments
 (0)