From c7f8e83cdaeb96986687b35c88e25f8372915296 Mon Sep 17 00:00:00 2001 From: "marta.sudol" Date: Wed, 28 May 2025 11:42:31 +0200 Subject: [PATCH 1/2] fix: static skeleton for report creation in offline state --- .../MoneyRequestReportView/MoneyRequestReportView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx b/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx index 968b4e0e4dca..7547ef48b324 100644 --- a/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx +++ b/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx @@ -67,13 +67,13 @@ function goBackFromSearchMoneyRequest() { Navigation.goBack(ROUTES.SEARCH_ROOT.getRoute({query: buildCannedSearchQuery()})); } -function InitialLoadingSkeleton({styles}: {styles: ThemeStyles}) { +function InitialLoadingSkeleton({styles, shouldAnimate}: {styles: ThemeStyles, shouldAnimate: boolean}) { return ( {}} /> - + ); } @@ -179,7 +179,7 @@ function MoneyRequestReportView({report, policy, reportMetadata, shouldDisplayRe ); if (!!(isLoadingInitialReportActions && reportActions.length === 0 && !isOffline) || shouldWaitForData) { - return ; + return ; } if (reportActions.length === 0) { From b1ba493fccffefdd7122f3f8b4054027aca0a4ed Mon Sep 17 00:00:00 2001 From: "marta.sudol" Date: Wed, 28 May 2025 11:57:28 +0200 Subject: [PATCH 2/2] fix: static skeleton for report creation in offline state --- .../MoneyRequestReportView/MoneyRequestReportView.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx b/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx index 7547ef48b324..06f38543b0de 100644 --- a/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx +++ b/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx @@ -67,7 +67,7 @@ function goBackFromSearchMoneyRequest() { Navigation.goBack(ROUTES.SEARCH_ROOT.getRoute({query: buildCannedSearchQuery()})); } -function InitialLoadingSkeleton({styles, shouldAnimate}: {styles: ThemeStyles, shouldAnimate: boolean}) { +function InitialLoadingSkeleton({styles, shouldAnimate}: {styles: ThemeStyles; shouldAnimate: boolean}) { return ( @@ -179,7 +179,12 @@ function MoneyRequestReportView({report, policy, reportMetadata, shouldDisplayRe ); if (!!(isLoadingInitialReportActions && reportActions.length === 0 && !isOffline) || shouldWaitForData) { - return ; + return ( + + ); } if (reportActions.length === 0) {