Skip to content

Commit

Permalink
Addressed to reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahe Shahinyan committed Feb 4, 2024
1 parent 70d6848 commit 84317af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion src/components/DisplayNames/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ function DisplayNames({fullTitle, tooltipEnabled, textStyles, numberOfLines, sho
);
}

if (shouldUseFullTitle) {
return (
<DisplayNamesWithToolTip
shouldUseFullTitle
fullTitle={title}
textStyles={textStyles}
numberOfLines={numberOfLines}
/>
);
}

return (
<DisplayNamesWithToolTip
shouldUseFullTitle={shouldUseFullTitle}
fullTitle={title}
displayNamesWithTooltips={displayNamesWithTooltips}
textStyles={textStyles}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/settings/Report/ReportSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function ReportSettingsPage({report, policies}: ReportSettingsPageProps) {
{translate('workspace.common.workspace')}
</Text>
<DisplayNames
fullTitle={linkedWorkspace?.name}
fullTitle={linkedWorkspace.name}
tooltipEnabled
numberOfLines={1}
textStyles={[styles.optionAlternateText, styles.pre]}
Expand All @@ -160,7 +160,7 @@ function ReportSettingsPage({report, policies}: ReportSettingsPageProps) {
>
{translate(`newRoomPage.visibilityOptions.${report.visibility}`)}
</Text>
<Text style={[styles.textLabelSupporting, styles.mt1]}>{report.visibility && translate(`newRoomPage.${report.visibility}Description`)}</Text>
<Text style={[styles.textLabelSupporting, styles.mt1]}>{translate(`newRoomPage.${report.visibility}Description`)}</Text>
</View>
)}
</View>
Expand Down

0 comments on commit 84317af

Please sign in to comment.