Skip to content

Commit

Permalink
react [nfc]: Remove a useless Fragment
Browse files Browse the repository at this point in the history
I caught this while experimenting with a new(ish) eslint rule:
  react/jsx-no-useless-fragment
  https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
  • Loading branch information
chrisbobbe committed May 26, 2022
1 parent c9665fa commit af12e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streams/TopicItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function TopicItem(props: Props): Node {
numberOfLines={1}
ellipsizeMode="tail"
/>
{isMentioned ? <IconMention size={14} style={componentStyles.mentionedLabel} /> : <></>}
{isMentioned && <IconMention size={14} style={componentStyles.mentionedLabel} />}
<UnreadCount count={unreadCount} inverse={isSelected} />
</View>
</Touchable>
Expand Down

0 comments on commit af12e74

Please sign in to comment.