feature/IO-3497-Ant-Design-v5-to-v6 - Checkpoint
This commit is contained in:
@@ -5,7 +5,7 @@ export default function DataLabel({
|
||||
hideIfNull,
|
||||
children,
|
||||
open = true,
|
||||
valueStyle = {},
|
||||
styles,
|
||||
valueClassName,
|
||||
onValueClick,
|
||||
...props
|
||||
@@ -33,7 +33,11 @@ export default function DataLabel({
|
||||
className={valueClassName}
|
||||
onClick={onValueClick}
|
||||
>
|
||||
{typeof children === "string" ? <Typography.Text style={valueStyle}>{children}</Typography.Text> : children}
|
||||
{typeof children === "string" ? (
|
||||
<Typography.Text style={styles?.value}>{children}</Typography.Text>
|
||||
) : (
|
||||
children
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user