Skip to content

Commit

Permalink
Merge branch 'ONE-2629-center-history-item-label' into 'main'
Browse files Browse the repository at this point in the history
[ONE-2629] Center history item label when info is missing

Closes ONE-2629

See merge request procivis/one/one-react-native-components!147
  • Loading branch information
procivisAG committed Sep 26, 2024
2 parents afb183a + deb80be commit 8742fb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@procivis/one-react-native-components",
"version": "0.1.41",
"version": "0.1.42",
"author": "Procivis AG (https://procivis.ch)",
"license": "Apache-2.0",
"description": "Common Procivis ONE UI components for react-native",
Expand Down
18 changes: 10 additions & 8 deletions src/history/history-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ const HistoryListItem: FC<HistoryListItemProps> = ({ icon, label, info, last, st
<Typography color={colorScheme.text} preset="s" style={styles.label} testID={concatTestID(testID, 'label')}>
{label}
</Typography>
<Typography
color={colorScheme.text}
numberOfLines={1}
preset="s/line-height-small"
style={styles.shaded}
testID={concatTestID(testID, 'info')}>
{info}
</Typography>
{Boolean(info) && (
<Typography
color={colorScheme.text}
numberOfLines={1}
preset="s/line-height-small"
style={styles.shaded}
testID={concatTestID(testID, 'info')}>
{info}
</Typography>
)}
</View>
<Typography
color={colorScheme.text}
Expand Down

0 comments on commit 8742fb2

Please sign in to comment.