Skip to content

Commit

Permalink
Merge pull request #34093 from keisyrzk/offlineMembersDelete
Browse files Browse the repository at this point in the history
Workspace members - Members deleted offline are not crossed out
  • Loading branch information
madmax330 authored Jan 12, 2024
2 parents ca4d938 + b23ed61 commit 0102c5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/SelectionList/UserListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import {View} from 'react-native';
import SubscriptAvatar from '@components/SubscriptAvatar';
import Text from '@components/Text';
import Tooltip from '@components/Tooltip';
import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';
import {userListItemPropTypes} from './selectionListPropTypes';

function UserListItem({item, textStyles, alternateTextStyles, showTooltip}) {
function UserListItem({item, textStyles, alternateTextStyles, showTooltip, style}) {
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
return (
<>
{Boolean(item.icons) && (
Expand All @@ -24,7 +26,7 @@ function UserListItem({item, textStyles, alternateTextStyles, showTooltip}) {
text={item.text}
>
<Text
style={textStyles}
style={StyleUtils.combineStyles(textStyles, style)}
numberOfLines={1}
>
{item.text}
Expand All @@ -36,7 +38,7 @@ function UserListItem({item, textStyles, alternateTextStyles, showTooltip}) {
text={item.alternateText}
>
<Text
style={alternateTextStyles}
style={StyleUtils.combineStyles(alternateTextStyles, style)}
numberOfLines={1}
>
{item.alternateText}
Expand Down

0 comments on commit 0102c5d

Please sign in to comment.