Skip to content

Commit

Permalink
updated conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhenry committed Mar 29, 2024
1 parent 65e2cae commit 9585a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function BaseSelectionList<TItem extends ListItem>(
listHeaderWrapperStyle,
isRowMultilineSupported = false,
textInputRef,
headerMessageStyle = [styles.ph5, styles.pb5]
headerMessageStyle,
}: BaseSelectionListProps<TItem>,
ref: ForwardedRef<SelectionListHandle>,
) {
Expand Down Expand Up @@ -515,7 +515,7 @@ function BaseSelectionList<TItem extends ListItem>(
</View>
)}
{!!headerMessage && (
<View style={[headerMessageStyle]}>
<View style={headerMessageStyle ?? [styles.ph5, styles.pb5]}>
<Text style={[styles.textLabel, styles.colorMuted]}>{headerMessage}</Text>
</View>
)}
Expand Down

0 comments on commit 9585a87

Please sign in to comment.