From affaeb2135053b609137ac69b77b424d40eccadb Mon Sep 17 00:00:00 2001 From: Pujan Date: Fri, 27 Oct 2023 19:29:42 +0530 Subject: [PATCH 1/4] added background for task views --- src/pages/home/report/ReportActionItem.js | 39 ++++++++++++++--------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index d44c7b8ee4d1..13b4d6247d43 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -73,6 +73,7 @@ import ROUTES from '../../../ROUTES'; import Navigation from '../../../libs/Navigation/Navigation'; import KYCWall from '../../../components/KYCWall'; import userWalletPropTypes from '../../EnablePayments/userWalletPropTypes'; +import AnimatedEmptyStateBackground from './AnimatedEmptyStateBackground'; const propTypes = { ...windowDimensionsPropTypes, @@ -570,24 +571,32 @@ function ReportActionItem(props) { if (ReportUtils.isTaskReport(props.report)) { if (ReportUtils.isCanceledTaskReport(props.report, parentReportAction)) { content = ( - <> - - ${props.translate('parentReportAction.deletedTask')}`} /> - - - + + + + + ${props.translate('parentReportAction.deletedTask')}`} /> + + + + ); } else { content = ( - + + + + + + ); } } From 9dc5c8b5909f49811108fdce46f846809729f497 Mon Sep 17 00:00:00 2001 From: Pujan Date: Fri, 27 Oct 2023 20:02:26 +0530 Subject: [PATCH 2/4] prettier --- src/pages/home/report/ReportActionItem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 13b4d6247d43..8b518f971dfe 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -571,8 +571,8 @@ function ReportActionItem(props) { if (ReportUtils.isTaskReport(props.report)) { if (ReportUtils.isCanceledTaskReport(props.report, parentReportAction)) { content = ( - - + + - + + Date: Thu, 2 Nov 2023 11:31:28 +0530 Subject: [PATCH 3/4] removed min height style for parent --- src/pages/home/report/ReportActionItem.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 3c599e8b7401..3485bcbd7a60 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -58,6 +58,7 @@ import * as User from '@userActions/User'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; +import AnimatedEmptyStateBackground from './AnimatedEmptyStateBackground'; import * as ContextMenuActions from './ContextMenu/ContextMenuActions'; import MiniReportActionContextMenu from './ContextMenu/MiniReportActionContextMenu'; import * as ReportActionContextMenu from './ContextMenu/ReportActionContextMenu'; @@ -73,7 +74,6 @@ import ReportActionItemSingle from './ReportActionItemSingle'; import ReportActionItemThread from './ReportActionItemThread'; import reportActionPropTypes from './reportActionPropTypes'; import ReportAttachmentsContext from './ReportAttachmentsContext'; -import AnimatedEmptyStateBackground from './AnimatedEmptyStateBackground'; const propTypes = { ...windowDimensionsPropTypes, @@ -571,9 +571,9 @@ function ReportActionItem(props) { if (ReportUtils.isTaskReport(props.report)) { if (ReportUtils.isCanceledTaskReport(props.report, parentReportAction)) { content = ( - + <> - + - + ); } else { content = ( - + <> - + ); } } From 9983f8862899c86a89462b874690e856ee28f808 Mon Sep 17 00:00:00 2001 From: Pujan Date: Mon, 6 Nov 2023 18:33:13 +0530 Subject: [PATCH 4/4] removed unnecessary style --- src/pages/home/report/ReportActionItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 3485bcbd7a60..0f9d566a43e1 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -573,7 +573,7 @@ function ReportActionItem(props) { content = ( <> - +