diff --git a/domains/DataCollection/Forms/index.js b/domains/DataCollection/Forms/index.js index 53525f882..0ef8d5f09 100644 --- a/domains/DataCollection/Forms/index.js +++ b/domains/DataCollection/Forms/index.js @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { View } from 'react-native'; import { Text, Button } from 'react-native-paper'; -import { layout } from '../../../modules/theme'; +import { layout, theme } from '../../../modules/theme'; import I18n from '../../../modules/i18n'; import IdentificationForm from './IdentificationForm'; @@ -22,7 +22,7 @@ const Forms = (props) => { puenteForms, surveyingUser, surveyingOrganization, surveyee, setSurveyee, - customForm + customForm, navigateToRoot } = props; const [consent, setConsent] = useState(false); @@ -87,6 +87,9 @@ const Forms = (props) => { + )} diff --git a/domains/DataCollection/index.js b/domains/DataCollection/index.js index c75f9c92e..8ecc6d737 100644 --- a/domains/DataCollection/index.js +++ b/domains/DataCollection/index.js @@ -173,6 +173,7 @@ const DataCollection = ({ navigation }) => { surveyee={surveyee} setSurveyee={setSurveyee} customForm={customForm} + setView={setView} /> )} @@ -206,7 +207,7 @@ const DataCollection = ({ navigation }) => { navigateToNewRecord={navigateToNewRecord} surveyee={surveyee} setSurveyee={setSurveyee} - setView={setView} + navigateToRoot={navigateToRoot} /> )}