From 5de5c144694287431e74c827b02e7ecc104d808f Mon Sep 17 00:00:00 2001 From: cdOut <88325488+cdOut@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:25:49 +0100 Subject: [PATCH 1/3] add FormProvider in ReportWelcomeMessagePage --- src/pages/ReportWelcomeMessagePage.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/ReportWelcomeMessagePage.js b/src/pages/ReportWelcomeMessagePage.js index a0e471d00df6..baa883abc20d 100644 --- a/src/pages/ReportWelcomeMessagePage.js +++ b/src/pages/ReportWelcomeMessagePage.js @@ -23,6 +23,8 @@ import ROUTES from '@src/ROUTES'; import withReportOrNotFound from './home/report/withReportOrNotFound'; import reportPropTypes from './reportPropTypes'; import {policyDefaultProps, policyPropTypes} from './workspace/withPolicy'; +import FormProvider from '@components/Form/FormProvider'; +import InputWrapper from '@components/Form/InputWrapper'; const propTypes = { ...withLocalizePropTypes, @@ -86,7 +88,7 @@ function ReportWelcomeMessagePage(props) { title={props.translate('welcomeMessagePage.welcomeMessage')} onBackButtonPress={() => Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(props.report.reportID))} /> -
+ ); From dc6cec769fee62e5a2ac70046e853d67b4437239 Mon Sep 17 00:00:00 2001 From: cdOut <88325488+cdOut@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:26:28 +0100 Subject: [PATCH 2/3] fix prettier --- src/pages/ReportWelcomeMessagePage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ReportWelcomeMessagePage.js b/src/pages/ReportWelcomeMessagePage.js index baa883abc20d..4ed895b2e3b4 100644 --- a/src/pages/ReportWelcomeMessagePage.js +++ b/src/pages/ReportWelcomeMessagePage.js @@ -6,6 +6,8 @@ import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView'; import Form from '@components/Form'; +import FormProvider from '@components/Form/FormProvider'; +import InputWrapper from '@components/Form/InputWrapper'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import ScreenWrapper from '@components/ScreenWrapper'; import Text from '@components/Text'; @@ -23,8 +25,6 @@ import ROUTES from '@src/ROUTES'; import withReportOrNotFound from './home/report/withReportOrNotFound'; import reportPropTypes from './reportPropTypes'; import {policyDefaultProps, policyPropTypes} from './workspace/withPolicy'; -import FormProvider from '@components/Form/FormProvider'; -import InputWrapper from '@components/Form/InputWrapper'; const propTypes = { ...withLocalizePropTypes, From 083e4cc1cb5fe3912a6e24bb5247423e4018e012 Mon Sep 17 00:00:00 2001 From: cdOut <88325488+cdOut@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:26:46 +0100 Subject: [PATCH 3/3] remove unused imports --- src/pages/ReportWelcomeMessagePage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/ReportWelcomeMessagePage.js b/src/pages/ReportWelcomeMessagePage.js index 4ed895b2e3b4..031cabc13e8d 100644 --- a/src/pages/ReportWelcomeMessagePage.js +++ b/src/pages/ReportWelcomeMessagePage.js @@ -5,7 +5,6 @@ import React, {useCallback, useRef, useState} from 'react'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView'; -import Form from '@components/Form'; import FormProvider from '@components/Form/FormProvider'; import InputWrapper from '@components/Form/InputWrapper'; import HeaderWithBackButton from '@components/HeaderWithBackButton';