Minor UI improvements.

This commit is contained in:
Patrick Fic
2025-11-24 10:25:24 -08:00
parent e069fd1170
commit 46b4523ed8
10 changed files with 590 additions and 27 deletions

View File

@@ -7,6 +7,7 @@ export default function DataLabelComponent({
label,
content,
dateTime,
noTextWrap,
...restProps
}) {
let theContent = content;
@@ -19,7 +20,8 @@ export default function DataLabelComponent({
return (
<View key={key} {...rest} style={{ margin: 4, ...restProps.style }}>
<Text style={{ fontWeight: "bold" }}>{label}</Text>
<Text>{theContent}</Text>
{noTextWrap ? content : <Text>{theContent}</Text>}
</View>
);
}