diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 02b4f8b17e36..f46b1569ed4c 100644 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -4505,21 +4505,18 @@ const CONST = { }, AVATAR_SIZE: { - X_LARGE: 'xlarge', - LARGE: 'large', - MEDIUM: 'medium', - DEFAULT: 'default', + XXXX_SMALL: 'xxxx-small', + XXX_SMALL: 'xxx-small', + XX_SMALL: 'xx-small', + X_SMALL: 'x-small', SMALL: 'small', - SMALLER: 'smaller', - SUBSCRIPT: 'subscript', - SMALL_SUBSCRIPT: 'small-subscript', - MID_SUBSCRIPT: 'mid-subscript', - LARGE_BORDERED: 'large-bordered', - MEDIUM_LARGE: 'medium-large', - HEADER: 'header', - MENTION_ICON: 'mention-icon', - SMALL_NORMAL: 'small-normal', - LARGE_NORMAL: 'large-normal', + // The default avatar size, mapping to the medium avatar dimensions (variables.avatarSizeMedium) + DEFAULT: 'medium', + LARGE: 'large', + X_LARGE: 'x-large', + XX_LARGE: 'xx-large', + XXX_LARGE: 'xxx-large', + XXXX_LARGE: 'xxxx-large', }, COMPANY_CARD: { diff --git a/src/components/AccountManagerBookCallButton.tsx b/src/components/AccountManagerBookCallButton.tsx index 65ae7018692e..871d8cb3e50d 100644 --- a/src/components/AccountManagerBookCallButton.tsx +++ b/src/components/AccountManagerBookCallButton.tsx @@ -74,7 +74,7 @@ function AccountManagerBookCallButton({calendarLink, accountManagerAccountID, is avatarID={accountManagerAccountID} name={accountManagerDetails?.displayName ?? accountManagerDetails?.login} type={CONST.ICON_TYPE_AVATAR} - size={CONST.AVATAR_SIZE.MID_SUBSCRIPT} + size={CONST.AVATAR_SIZE.XXX_SMALL} /> {label} diff --git a/src/components/Attachments/AttachmentView/index.tsx b/src/components/Attachments/AttachmentView/index.tsx index ed8ce8aa5026..ac29c74dcc1f 100644 --- a/src/components/Attachments/AttachmentView/index.tsx +++ b/src/components/Attachments/AttachmentView/index.tsx @@ -220,7 +220,7 @@ function AttachmentView({ return ( @@ -230,8 +230,8 @@ function AttachmentView({ return ( diff --git a/src/components/AvatarButtonWithIcon.tsx b/src/components/AvatarButtonWithIcon.tsx index aa9adb03056d..07139fa24792 100644 --- a/src/components/AvatarButtonWithIcon.tsx +++ b/src/components/AvatarButtonWithIcon.tsx @@ -28,7 +28,7 @@ type AvatarButtonWithIconProps = WithSentryLabel & { text: string; /** Style applied to the avatar */ - avatarStyle: StyleProp; + avatarStyle?: StyleProp; /** Executed on click */ onPress: () => void; @@ -52,7 +52,7 @@ type AvatarButtonWithIconProps = WithSentryLabel & { DefaultAvatar?: () => React.ReactNode; /** Size of Indicator */ - size?: typeof CONST.AVATAR_SIZE.X_LARGE | typeof CONST.AVATAR_SIZE.LARGE | typeof CONST.AVATAR_SIZE.DEFAULT; + size?: typeof CONST.AVATAR_SIZE.XXXX_LARGE | typeof CONST.AVATAR_SIZE.XXX_LARGE | typeof CONST.AVATAR_SIZE.DEFAULT; /** A fallback avatar icon to display when there is an error on loading avatar from remote URL. */ fallbackIcon?: AvatarSource; diff --git a/src/components/AvatarSelector.tsx b/src/components/AvatarSelector.tsx index 92717d65d5dc..4f950326aa55 100644 --- a/src/components/AvatarSelector.tsx +++ b/src/components/AvatarSelector.tsx @@ -36,7 +36,7 @@ const SPACER_SIZE = 10; /** * AvatarSelector — renders a grid of selectable avatars. */ -function AvatarSelector({selectedID, onSelect, label, size = CONST.AVATAR_SIZE.MEDIUM}: AvatarSelectorProps) { +function AvatarSelector({selectedID, onSelect, label, size = CONST.AVATAR_SIZE.X_LARGE}: AvatarSelectorProps) { const {translate} = useLocalize(); const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); diff --git a/src/components/HeaderWithBackButton/index.tsx b/src/components/HeaderWithBackButton/index.tsx index 36ee9567d2b0..ee5e7a94eb30 100755 --- a/src/components/HeaderWithBackButton/index.tsx +++ b/src/components/HeaderWithBackButton/index.tsx @@ -289,7 +289,7 @@ function HeaderWithBackButton({ )} {!!policyAvatar && ( ) : undefined } diff --git a/src/components/MentionSuggestions.tsx b/src/components/MentionSuggestions.tsx index c10bfda819f7..e75f14d53e2e 100644 --- a/src/components/MentionSuggestions.tsx +++ b/src/components/MentionSuggestions.tsx @@ -97,7 +97,7 @@ function MentionSuggestions({ {}, }: ReceiptEmptyStateProps) { const styles = useThemeStyles(); + const StyleUtils = useStyleUtils(); const {translate} = useLocalize(); const theme = useTheme(); const isLoadedRef = useRef(false); @@ -164,11 +166,11 @@ function ReceiptEmptyState({ height={variables.eReceiptEmptyIconWidth} /> {!isThumbnail && ( - + )} diff --git a/src/components/ReportActionAvatars/ReportActionAvatar.tsx b/src/components/ReportActionAvatars/ReportActionAvatar.tsx index 214ed95d61a0..c86c1909b3e7 100644 --- a/src/components/ReportActionAvatars/ReportActionAvatar.tsx +++ b/src/components/ReportActionAvatars/ReportActionAvatar.tsx @@ -70,7 +70,7 @@ type AvatarStyles = { secondAvatarStyles: ViewStyle & ImageStyle; }; -type AvatarSizeToStyles = typeof CONST.AVATAR_SIZE.SMALL | typeof CONST.AVATAR_SIZE.LARGE | typeof CONST.AVATAR_SIZE.DEFAULT; +type AvatarSizeToStyles = typeof CONST.AVATAR_SIZE.SMALL | typeof CONST.AVATAR_SIZE.XXX_LARGE | typeof CONST.AVATAR_SIZE.XXXX_LARGE | typeof CONST.AVATAR_SIZE.DEFAULT; type AvatarSizeToStylesMap = Record; @@ -206,21 +206,17 @@ function ReportActionAvatarSubscript({ const subscriptAvatarStyle = useMemo(() => { if (size === CONST.AVATAR_SIZE.SMALL) { - return styles.secondAvatarSubscriptCompact; + return styles.secondAvatarSubscriptSmall; } - if (size === CONST.AVATAR_SIZE.SMALL_NORMAL) { - return styles.secondAvatarSubscriptSmallNormal; - } - - if (size === CONST.AVATAR_SIZE.X_LARGE) { - return styles.secondAvatarSubscriptXLarge; + if (size === CONST.AVATAR_SIZE.XXXX_LARGE) { + return styles.secondAvatarSubscriptXxxxLarge; } return styles.secondAvatarSubscript; }, [size, styles]); - const subscriptAvatarSize = size === CONST.AVATAR_SIZE.X_LARGE ? CONST.AVATAR_SIZE.HEADER : CONST.AVATAR_SIZE.SUBSCRIPT; + const subscriptAvatarSize = size === CONST.AVATAR_SIZE.XXXX_LARGE ? CONST.AVATAR_SIZE.DEFAULT : CONST.AVATAR_SIZE.XX_SMALL; return ( - + { @@ -439,7 +435,7 @@ function ReportActionAvatarMultipleHorizontal({ // Set overlay background color with RGBA value so that the text will not inherit opacity StyleUtils.getBackgroundColorWithOpacityStyle(theme.overlay, variables.overlayOpacity), - StyleUtils.getHorizontalStackedOverlayAvatarStyle(oneAvatarSize, oneAvatarBorderWidth), + StyleUtils.getHorizontalStackedOverlayAvatarStyle(size), icons.at(3)?.type === CONST.ICON_TYPE_WORKSPACE && StyleUtils.getAvatarBorderRadius(size, icons.at(3)?.type), ]} > @@ -488,26 +484,26 @@ function ReportActionAvatarMultipleDiagonal({ () => (shouldShowTooltip ? icons.map((icon) => getUserDetailTooltipText(Number(icon.id), formatPhoneNumber, translate, icon.name)) : ['']), [shouldShowTooltip, icons, formatPhoneNumber, translate], ); - const removeRightMargin = icons.length === 2 && size === CONST.AVATAR_SIZE.X_LARGE; + const removeRightMargin = icons.length === 2 && size === CONST.AVATAR_SIZE.XXXX_LARGE; const avatarContainerStyles = StyleUtils.getContainerStyles(size, isInReportAction); const avatarSizeToStylesMap: AvatarSizeToStylesMap = useMemo( () => ({ [CONST.AVATAR_SIZE.SMALL]: { - singleAvatarStyle: styles.singleAvatarSmall, - secondAvatarStyles: styles.secondAvatarSmall, + singleAvatarStyle: styles.singleAvatarXxxSmall, + secondAvatarStyles: styles.secondAvatarXxxSmall, }, - [CONST.AVATAR_SIZE.LARGE]: { - singleAvatarStyle: styles.singleAvatarMedium, - secondAvatarStyles: styles.secondAvatarMedium, + [CONST.AVATAR_SIZE.XXX_LARGE]: { + singleAvatarStyle: styles.singleAvatarXLarge, + secondAvatarStyles: styles.secondAvatarXLarge, }, - [CONST.AVATAR_SIZE.X_LARGE]: { - singleAvatarStyle: styles.singleAvatarMediumLarge, - secondAvatarStyles: styles.secondAvatarMediumLarge, + [CONST.AVATAR_SIZE.XXXX_LARGE]: { + singleAvatarStyle: styles.singleAvatarXxLarge, + secondAvatarStyles: styles.secondAvatarXxLarge, }, [CONST.AVATAR_SIZE.DEFAULT]: { - singleAvatarStyle: styles.singleAvatar, - secondAvatarStyles: styles.secondAvatar, + singleAvatarStyle: styles.singleAvatarXSmall, + secondAvatarStyles: styles.secondAvatarXSmall, }, }), [styles], @@ -515,21 +511,24 @@ function ReportActionAvatarMultipleDiagonal({ const avatarSize = useMemo(() => { if (useMidSubscriptSize) { - return CONST.AVATAR_SIZE.MID_SUBSCRIPT; + return CONST.AVATAR_SIZE.XXX_SMALL; } - if (size === CONST.AVATAR_SIZE.LARGE) { - return CONST.AVATAR_SIZE.MEDIUM; + if (size === CONST.AVATAR_SIZE.XXX_LARGE) { + return CONST.AVATAR_SIZE.X_LARGE; } - if (size === CONST.AVATAR_SIZE.X_LARGE) { - return CONST.AVATAR_SIZE.MEDIUM_LARGE; + if (size === CONST.AVATAR_SIZE.XXXX_LARGE) { + return CONST.AVATAR_SIZE.XX_LARGE; } - return CONST.AVATAR_SIZE.SMALLER; + return CONST.AVATAR_SIZE.X_SMALL; }, [useMidSubscriptSize, size]); - const {singleAvatarStyle, secondAvatarStyles} = useMemo(() => avatarSizeToStylesMap[size as AvatarSizeToStyles] ?? avatarSizeToStylesMap.default, [size, avatarSizeToStylesMap]); + const {singleAvatarStyle, secondAvatarStyles} = useMemo( + () => avatarSizeToStylesMap[size as AvatarSizeToStyles] ?? avatarSizeToStylesMap[CONST.AVATAR_SIZE.DEFAULT], + [size, avatarSizeToStylesMap], + ); const secondaryAvatarContainerStyles = secondaryAvatarContainerStyle ?? [StyleUtils.getBackgroundAndBorderStyle(isHovered ? theme.activeComponentBG : theme.componentBG)]; return ( diff --git a/src/components/ReportActionItem/TaskView.tsx b/src/components/ReportActionItem/TaskView.tsx index 3afaa2bac1c1..107284190694 100644 --- a/src/components/ReportActionItem/TaskView.tsx +++ b/src/components/ReportActionItem/TaskView.tsx @@ -276,7 +276,7 @@ function TaskView({report, parentReport, action}: TaskViewProps) { title={getDisplayNameForParticipant({accountID: report.managerID, formatPhoneNumber, translate})} iconAccountID={report.managerID} iconType={CONST.ICON_TYPE_AVATAR} - avatarSize={CONST.AVATAR_SIZE.SMALLER} + avatarSize={CONST.AVATAR_SIZE.X_SMALL} titleStyle={styles.assigneeTextStyle} onPress={() => Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.TASK_ASSIGNEE.path))} shouldShowRightIcon={!isDisableInteractive} diff --git a/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx b/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx index 2dd423b1c878..3de2fa4fdb28 100644 --- a/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx +++ b/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx @@ -308,7 +308,7 @@ function TransactionPreviewContent({ participantFromDisplayName={from.displayName ?? from.login ?? translate('common.hidden')} participantToDisplayName={to.displayName ?? to.login ?? translate('common.hidden')} participantTo={to} - avatarSize="mid-subscript" + avatarSize={CONST.AVATAR_SIZE.XXX_SMALL} infoCellsTextStyle={{...styles.textMicroBold, lineHeight: 14}} infoCellsAvatarStyle={styles.pr1} style={[styles.flex1, styles.dFlex, styles.alignItemsCenter, styles.gap2, styles.flexRow]} @@ -325,7 +325,7 @@ function TransactionPreviewContent({ sort: CONST.REPORT_ACTION_AVATARS.SORT_BY.ID, useCardBG: true, }} - size={CONST.AVATAR_SIZE.SUBSCRIPT} + size={CONST.AVATAR_SIZE.XX_SMALL} /> )} diff --git a/src/components/RoomHeaderAvatars.tsx b/src/components/RoomHeaderAvatars.tsx index 9949350afec4..a1854b66487b 100644 --- a/src/components/RoomHeaderAvatars.tsx +++ b/src/components/RoomHeaderAvatars.tsx @@ -8,6 +8,8 @@ import Navigation from '@libs/Navigation/Navigation'; import {isUserCreatedPolicyRoom} from '@libs/ReportUtils'; import {isDefaultAvatar} from '@libs/UserAvatarUtils'; +import variables from '@styles/variables'; + import CONST from '@src/CONST'; import ROUTES, {DYNAMIC_ROUTES} from '@src/ROUTES'; import type {Policy, Report} from '@src/types/onyx'; @@ -65,8 +67,8 @@ function RoomHeaderAvatars({icons, report, policy, participants, currentUserAcco source={icon.source || report.avatarUrl} avatarID={icon.id} isUsingDefaultAvatar={!report.avatarUrl || isDefaultAvatar(icon.source)} - size={CONST.AVATAR_SIZE.X_LARGE} - avatarStyle={[styles.avatarXLarge, styles.alignSelfCenter]} + size={CONST.AVATAR_SIZE.XXXX_LARGE} + avatarStyle={styles.alignSelfCenter} onViewPhotoPress={() => Navigation.navigate(ROUTES.REPORT_AVATAR.getRoute(report.reportID))} onImageRemoved={() => updatePolicyRoomAvatar(report.reportID, currentUserAccountID, report.avatarUrl)} onImageSelected={(file) => updatePolicyRoomAvatar(report.reportID, currentUserAccountID, report.avatarUrl, file)} @@ -94,8 +96,7 @@ function RoomHeaderAvatars({icons, report, policy, participants, currentUserAcco > + type === CONST.ICON_TYPE_WORKSPACE ? {borderRadius: variables.componentBorderRadiusRounded} : StyleUtils.getAvatarBorderRadius(CONST.AVATAR_SIZE.XXX_LARGE, type); return ( @@ -123,7 +129,7 @@ function RoomHeaderAvatars({icons, report, policy, participants, currentUserAcco style={[styles.justifyContentCenter, styles.alignItemsCenter]} > navigateToAvatarPage(icon)} accessibilityRole={CONST.ROLE.BUTTON} accessibilityLabel={icon.name ?? ''} @@ -131,8 +137,8 @@ function RoomHeaderAvatars({icons, report, policy, participants, currentUserAcco > diff --git a/src/components/Search/SearchList/ListItem/AttendeesCell.tsx b/src/components/Search/SearchList/ListItem/AttendeesCell.tsx index 92c160e1b2c6..a6d9de64a42b 100644 --- a/src/components/Search/SearchList/ListItem/AttendeesCell.tsx +++ b/src/components/Search/SearchList/ListItem/AttendeesCell.tsx @@ -50,12 +50,12 @@ function AttendeesCell({attendees, isHovered, isPressed}: AttendeesCellProps) { const [personalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST); - const size = CONST.AVATAR_SIZE.SMALLER; + const size = CONST.AVATAR_SIZE.X_SMALL; const maxAvatarsInRow = CONST.AVATAR_ROW_SIZE.DEFAULT; const oneAvatarSize = StyleUtils.getAvatarStyle(size); const oneAvatarBorderWidth = StyleUtils.getAvatarBorderWidth(size).borderWidth ?? 0; const overlapSize = oneAvatarSize.width / 3 + 2 * oneAvatarBorderWidth; - const height = oneAvatarSize.height; + const height = StyleUtils.getAvatarSizeWithBorder(size); const avatarContainerStyles = StyleUtils.combineStyles([styles.alignItemsCenter, styles.flexRow, StyleUtils.getHeight(height), styles.overflowHidden]); const icons = sortIconsByName(attendeeIcons, personalDetails, localeCompare); @@ -123,7 +123,7 @@ function AttendeesCell({attendees, isHovered, isPressed}: AttendeesCellProps) { }), // Set overlay background color with RGBA value so that the text will not inherit opacity - StyleUtils.getHorizontalStackedOverlayAvatarStyle(oneAvatarSize, oneAvatarBorderWidth), + StyleUtils.getHorizontalStackedOverlayAvatarStyle(size), icons.at(3)?.type === CONST.ICON_TYPE_WORKSPACE && StyleUtils.getAvatarBorderRadius(size, icons.at(3)?.type), StyleUtils.getBackgroundColorWithOpacityStyle(colors.productDark400, variables.overlayOpacity), ]} diff --git a/src/components/Search/SearchList/ListItem/AvatarWithTextCell.tsx b/src/components/Search/SearchList/ListItem/AvatarWithTextCell.tsx index b375702f3add..ad5ef421d9d3 100644 --- a/src/components/Search/SearchList/ListItem/AvatarWithTextCell.tsx +++ b/src/components/Search/SearchList/ListItem/AvatarWithTextCell.tsx @@ -31,7 +31,7 @@ function AvatarWithTextCell({reportName, icon, isLargeScreenWidth}: AvatarWithTe avatarID={icon.id} type={icon.type} fallbackIcon={icon.fallbackIcon} - size={CONST.AVATAR_SIZE.MID_SUBSCRIPT} + size={CONST.AVATAR_SIZE.XXX_SMALL} containerStyles={[styles.pr2]} /> )} diff --git a/src/components/Search/SearchList/ListItem/ExportedIconCell.tsx b/src/components/Search/SearchList/ListItem/ExportedIconCell.tsx index af66fb0f15a8..e093b7d60149 100644 --- a/src/components/Search/SearchList/ListItem/ExportedIconCell.tsx +++ b/src/components/Search/SearchList/ListItem/ExportedIconCell.tsx @@ -99,56 +99,56 @@ function ExportedIconCell({reportActions}: ExportedIconCellProps) { )} {isExportedToXero && ( )} {isExportedToIntacct && ( )} {(isExportedToQuickbooksOnline || isExportedToQuickbooksDesktop) && ( )} {isExportedToCertinia && ( )} {isExportedToRillet && ( )} {isExportedToBillCom && ( )} {isExportedToZenefits && ( )} diff --git a/src/components/Search/SearchList/ListItem/TaskListItemRow.tsx b/src/components/Search/SearchList/ListItem/TaskListItemRow.tsx index ce9a8a428ab5..898edbba66bc 100644 --- a/src/components/Search/SearchList/ListItem/TaskListItemRow.tsx +++ b/src/components/Search/SearchList/ListItem/TaskListItemRow.tsx @@ -195,7 +195,7 @@ function TaskListItemRow({item, containerStyle, showTooltip}: TaskListItemRowPro {!!item.assignee.accountID && ( ({ > ({item, wrapperSt avatarID={icon.id} type={icon.type ?? CONST.ICON_TYPE_AVATAR} fallbackIcon={icon.fallbackIcon} - iconAdditionalStyles={[{width: variables.avatarSizeNormal, height: variables.avatarSizeNormal}, styles.mr3]} + iconAdditionalStyles={styles.mr3} /> ); diff --git a/src/components/SelectionList/ListItem/UserSelectionListItem.tsx b/src/components/SelectionList/ListItem/UserSelectionListItem.tsx index faa1f6c5639a..61980e170908 100644 --- a/src/components/SelectionList/ListItem/UserSelectionListItem.tsx +++ b/src/components/SelectionList/ListItem/UserSelectionListItem.tsx @@ -88,7 +88,7 @@ function UserSelectionListItem({ )} ( ), - [name, policyID, source, styles.alignSelfCenter, styles.avatarXLarge, icons.FallbackWorkspaceAvatar], + [name, policyID, source, styles.alignSelfCenter, icons.FallbackWorkspaceAvatar], ); } diff --git a/src/pages/DynamicReportDetailsPage.tsx b/src/pages/DynamicReportDetailsPage.tsx index afe176c49ade..2bb450172516 100644 --- a/src/pages/DynamicReportDetailsPage.tsx +++ b/src/pages/DynamicReportDetailsPage.tsx @@ -828,7 +828,7 @@ function DynamicReportDetailsPage({policy, report, route, reportMetadata, report Navigation.navigate(ROUTES.REPORT_AVATAR.getRoute(report.reportID))} onImageRemoved={() => { // Calling this without a file will remove the avatar @@ -865,7 +864,6 @@ function DynamicReportDetailsPage({policy, report, route, reportMetadata, report isGroupChat, icons, report, - styles.avatarXLarge, styles.smallEditIconAccount, styles.mt6, styles.w100, diff --git a/src/pages/DynamicReportParticipantDetailsPage.tsx b/src/pages/DynamicReportParticipantDetailsPage.tsx index 820cd9a84a6c..af5d3e9b8684 100644 --- a/src/pages/DynamicReportParticipantDetailsPage.tsx +++ b/src/pages/DynamicReportParticipantDetailsPage.tsx @@ -90,12 +90,11 @@ function DynamicReportParticipantDetails({report, route}: DynamicReportParticipa {!!(displayName ?? '') && ( diff --git a/src/pages/DynamicRoomMemberDetailsPage.tsx b/src/pages/DynamicRoomMemberDetailsPage.tsx index 9b3f2bfc98f9..26d8597667c1 100644 --- a/src/pages/DynamicRoomMemberDetailsPage.tsx +++ b/src/pages/DynamicRoomMemberDetailsPage.tsx @@ -84,12 +84,11 @@ function DynamicRoomMemberDetailsPage({report, route}: DynamicRoomMemberDetailsP {!!(details.displayName ?? '') && ( diff --git a/src/pages/NewChatConfirmPage.tsx b/src/pages/NewChatConfirmPage.tsx index 81ded6615015..70e11fc1f188 100644 --- a/src/pages/NewChatConfirmPage.tsx +++ b/src/pages/NewChatConfirmPage.tsx @@ -96,8 +96,7 @@ function AvatarAndGroupNameSection({setAvatarFile, optimisticReportID}: AvatarAn setAvatarFile(undefined); setGroupDraft({avatarUri: null, avatarFileName: null, avatarFileType: null}); }} - size={CONST.AVATAR_SIZE.X_LARGE} - avatarStyle={styles.avatarXLarge} + size={CONST.AVATAR_SIZE.XXXX_LARGE} editIcon={icons.Camera} editIconStyle={styles.smallEditIconAccount} style={styles.w100} diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index 87d1a235cd6a..191e9494422d 100755 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -227,12 +227,10 @@ function ProfilePage({route}: ProfilePageProps) { > diff --git a/src/pages/domain/BaseDomainMemberDetailsComponent.tsx b/src/pages/domain/BaseDomainMemberDetailsComponent.tsx index e8e109b41347..ada8946997a3 100644 --- a/src/pages/domain/BaseDomainMemberDetailsComponent.tsx +++ b/src/pages/domain/BaseDomainMemberDetailsComponent.tsx @@ -73,12 +73,11 @@ function BaseDomainMemberDetailsComponent({domainAccountID, accountID, children, diff --git a/src/pages/inbox/HeaderView.tsx b/src/pages/inbox/HeaderView.tsx index ad58b5f4cc2b..5fc1fed04aed 100644 --- a/src/pages/inbox/HeaderView.tsx +++ b/src/pages/inbox/HeaderView.tsx @@ -61,7 +61,6 @@ import { isConciergeChatReport, isCurrentUserSubmitter, isDeprecatedGroupDM, - isExpenseRequest, isGroupChat as isGroupChatReportUtils, isInvoiceReport, isInvoiceRoom, @@ -275,7 +274,6 @@ function HeaderView({onNavigationMenuButtonClicked, reportID}: HeaderViewProps) ); const shouldShowSubscript = shouldReportShowSubscript(report, isReportArchived); - const defaultSubscriptSize = isExpenseRequest(report) ? CONST.AVATAR_SIZE.SMALL_NORMAL : CONST.AVATAR_SIZE.DEFAULT; const brickRoadIndicator = hasReportNameError(report) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''; const shouldDisableDetailPage = shouldDisableDetailPageReportUtils(report, isParticipantOptimistic); const shouldUseGroupTitle = isGroupChat && (!!report?.reportName || !isMultipleParticipant); @@ -316,7 +314,6 @@ function HeaderView({onNavigationMenuButtonClicked, reportID}: HeaderViewProps) const multipleAvatars = ( ); diff --git a/src/pages/inbox/report/ReportActionItemCreated.tsx b/src/pages/inbox/report/ReportActionItemCreated.tsx index 2084a0f98740..e575187bdf93 100644 --- a/src/pages/inbox/report/ReportActionItemCreated.tsx +++ b/src/pages/inbox/report/ReportActionItemCreated.tsx @@ -102,7 +102,7 @@ function ReportActionItemCreated({reportID, policyID}: ReportActionItemCreatedPr >