-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viacheslav first names #2724
Viacheslav first names #2724
Changes from all commits
2b9e1c4
c9f7812
c805330
ffcca3e
b397e8a
b037e17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,11 +110,14 @@ const OptionRow = ({ | |
? hoverStyle.backgroundColor | ||
: backgroundColor; | ||
const focusedBackgroundColor = styles.sidebarLinkActive.backgroundColor; | ||
const isMultipleParticipant = option.participantsList.length > 1; | ||
const displayNamesWithTooltips = _.map( | ||
option.participantsList, | ||
({displayName, login}) => ({displayName, tooltip: login}), | ||
({displayName, firstName, login}) => ( | ||
{displayName: (isMultipleParticipant ? firstName : displayName) || login, tooltip: login} | ||
), | ||
); | ||
|
||
const fullTitle = displayNamesWithTooltips.map(({displayName}) => displayName).join(', '); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a big deal, but I think this should maybe be moved to |
||
return ( | ||
<Hoverable> | ||
{hovered => ( | ||
|
@@ -159,7 +162,7 @@ const OptionRow = ({ | |
} | ||
<View style={contentContainerStyles}> | ||
<DisplayNames | ||
fullTitle={option.text} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can move part of the code from OptionRow in OptionsListUtils.js ?
|
||
fullTitle={fullTitle} | ||
displayNamesWithTooltips={displayNamesWithTooltips} | ||
tooltipEnabled={showTitleTooltip} | ||
numberOfLines={1} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line in particular caused a regression, because the
option.participantsList
may be undefined per the prop-types hereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can i move part of the code from OptionRow in OptionsListUtils.js ?