From cb660f888b406d37e2821f72ee99e5f0d8d9d596 Mon Sep 17 00:00:00 2001 From: Aman Singh Date: Mon, 16 Jan 2023 15:18:29 +0530 Subject: [PATCH] fixed padding and margin issues (#60) --- RN-UI-LIB | 2 +- android/app/build.gradle | 2 +- src/components/form/Submit.tsx | 8 ++++---- src/screens/allCases/ListItem.tsx | 2 +- yarn.lock | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/RN-UI-LIB b/RN-UI-LIB index 4839ddf3..f536a952 160000 --- a/RN-UI-LIB +++ b/RN-UI-LIB @@ -1 +1 @@ -Subproject commit 4839ddf3d2fa8c157eb15e1699fbe0b6d9c78680 +Subproject commit f536a952aeb1489a81e03f5ed8f62f3710a94119 diff --git a/android/app/build.gradle b/android/app/build.gradle index 57ade27a..d559fee7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -139,7 +139,7 @@ android { applicationId "com.avapp" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 20 + versionCode 22 versionName "Address verification" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() diff --git a/src/components/form/Submit.tsx b/src/components/form/Submit.tsx index b8194846..e52ba3c5 100644 --- a/src/components/form/Submit.tsx +++ b/src/components/form/Submit.tsx @@ -31,7 +31,7 @@ const Submit: React.FC = props => { return ( - {data.visitedWidgets.map(visited => { + {data?.visitedWidgets?.map(visited => { console.log(visited); const sectionsArray = templateData.widget[visited].sections; @@ -39,7 +39,7 @@ const Submit: React.FC = props => { return ( - {sectionsArray.map(section => ( + {sectionsArray?.map(section => ( = props => { getShadowStyle(5), styles.br8, ]}> - {sections[section].label && ( + {sections?.[section].label && ( = props => { {sections[section].label} )} - {sections[section].questions.map( + {sections?.[section].questions.map( (question, questionIndex) => { const answer = data.widgetContext[visited] diff --git a/src/screens/allCases/ListItem.tsx b/src/screens/allCases/ListItem.tsx index 3a31a6bd..941eafca 100644 --- a/src/screens/allCases/ListItem.tsx +++ b/src/screens/allCases/ListItem.tsx @@ -104,7 +104,7 @@ const ListItem: React.FC = props => { return ( // Todo kunal to add the page switching logic - +