Skip to content

Commit

Permalink
add hidden for display name native component
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Nov 30, 2023
1 parent 52efc96 commit 2aafb7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/DisplayNames/index.native.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import React from 'react';
import Text from '@components/Text';
import useLocalize from '@hooks/useLocalize';
import DisplayNamesProps from './types';

// As we don't have to show tooltips of the Native platform so we simply render the full display names list.
function DisplayNames({accessibilityLabel, fullTitle, textStyles = [], numberOfLines = 1}: DisplayNamesProps) {
const {translate} = useLocalize();
return (
<Text
accessibilityLabel={accessibilityLabel}
style={textStyles}
numberOfLines={numberOfLines}
>
{fullTitle}
{fullTitle || translate('common.hidden')}
</Text>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,6 @@ function getIOUConfirmationOptionsFromPayeePersonalDetail(personalDetail, amount
function getIOUConfirmationOptionsFromParticipants(participants, amountText) {
return _.map(participants, (participant) => ({
...participant,
text: participant.text || Localize.translateLocal('common.hidden'),
descriptiveText: amountText,
}));
}
Expand Down

0 comments on commit 2aafb7a

Please sign in to comment.