From e941fe937b82bc84e36f2e0be5e21c80b7efeb0a Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Fri, 29 Mar 2024 09:06:55 +0530 Subject: [PATCH 1/2] fix: regression: 39083,39178. Signed-off-by: Krishna Gupta --- src/components/SelectionList/BaseListItem.tsx | 2 +- src/pages/workspace/WorkspacesListPage.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/SelectionList/BaseListItem.tsx b/src/components/SelectionList/BaseListItem.tsx index 42fdc7dc575e..0a628f5d544e 100644 --- a/src/components/SelectionList/BaseListItem.tsx +++ b/src/components/SelectionList/BaseListItem.tsx @@ -63,7 +63,7 @@ function BaseListItem({ pendingAction={pendingAction} errors={errors} errorRowStyles={styles.ph5} - style={containerStyle} + contentContainerStyle={containerStyle} > )} ); }, - [isLessThanMediumScreen, styles.mb3, styles.mh5, styles.ph5, styles.hoveredComponentBG, translate], + [isLessThanMediumScreen, styles.mb3, styles.mh5, styles.ph5, styles.hoveredComponentBG, translate, styles.offlineFeedback.deleted], ); const listHeaderComponent = useCallback(() => { From 6b698ef7d03a51e777838ab92be40b96fa49cfa4 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Mon, 8 Apr 2024 15:34:57 +0530 Subject: [PATCH 2/2] use CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE. Signed-off-by: Krishna Gupta --- src/pages/workspace/WorkspacesListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspacesListPage.tsx b/src/pages/workspace/WorkspacesListPage.tsx index 005a22c907db..3a24f22996c0 100755 --- a/src/pages/workspace/WorkspacesListPage.tsx +++ b/src/pages/workspace/WorkspacesListPage.tsx @@ -209,7 +209,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, r layoutWidth={isLessThanMediumScreen ? CONST.LAYOUT_WIDTH.NARROW : CONST.LAYOUT_WIDTH.WIDE} brickRoadIndicator={item.brickRoadIndicator} shouldDisableThreeDotsMenu={item.disabled} - style={[item.pendingAction === 'delete' ? styles.offlineFeedback.deleted : {}]} + style={[item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? styles.offlineFeedback.deleted : {}]} /> )}