From 348485047e39ac0946af302e6c227bbafffbc733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Colin?= Date: Thu, 8 Feb 2024 10:33:35 +0100 Subject: [PATCH] adapt UI to IOS --- app/App.tsx | 9 +++- app/src/components/AppCard.tsx | 2 +- app/src/screens/AppScreen.tsx | 2 +- app/src/screens/MainScreen.tsx | 5 +- app/src/screens/ProveScreen.tsx | 3 +- app/src/screens/ScanScreen.tsx | 96 +++++++++++++-------------------- app/src/utils/AppClass.ts | 2 +- 7 files changed, 54 insertions(+), 65 deletions(-) diff --git a/app/App.tsx b/app/App.tsx index b9a26cc56..f61767958 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -1,13 +1,20 @@ import React, { useEffect, useState } from 'react'; import { + StatusBar, + StyleSheet, useColorScheme, NativeModules, DeviceEventEmitter, + TextInput, Platform, } from 'react-native'; import { Colors, + DebugInstructions, + Header, + LearnMoreLinks, + ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; import Toast, { BaseToast, ErrorToast, SuccessToast, ToastProps } from 'react-native-toast-message'; // @ts-ignore @@ -531,7 +538,7 @@ function App(): JSX.Element { }; return ( - + = ({ = ({ selectedApp, setSelectedApp }) => ]; return ( - + {cardsData.map(card => ( = ({ }, []); return ( - + diff --git a/app/src/screens/ProveScreen.tsx b/app/src/screens/ProveScreen.tsx index 8152ab3bb..e56863ead 100644 --- a/app/src/screens/ProveScreen.tsx +++ b/app/src/screens/ProveScreen.tsx @@ -110,13 +110,14 @@ const ProveScreen: React.FC = ({ )} - This operation can take about 2 mn + This operation can take up to 2 mn The application may freeze during this time (hard work) ) : ( + diff --git a/app/src/screens/ScanScreen.tsx b/app/src/screens/ScanScreen.tsx index 7cf7d5420..d52aba5bb 100644 --- a/app/src/screens/ScanScreen.tsx +++ b/app/src/screens/ScanScreen.tsx @@ -10,65 +10,45 @@ interface ScanScreenProps { const ScanScreen: React.FC = ({ onStartCameraScan, nfcScan, step }) => { return ( - - - - 1 - - Scan the machine readable zone on the main page of your passport - - - 2 - - Hold your passport against your device to read the biometric chip + - - - 3 - - = Steps.NFC_SCAN_COMPLETED ? "bold" : "normal"}>Select App + + 1 + + Scan the machine readable zone on the main page of your passport + + + 2 + + Hold your passport against your device to read the biometric chip + + + 3 + + = Steps.NFC_SCAN_COMPLETED ? "bold" : "normal"}>Select App { diff --git a/app/src/utils/AppClass.ts b/app/src/utils/AppClass.ts index 0049a8c30..67ee89639 100644 --- a/app/src/utils/AppClass.ts +++ b/app/src/utils/AppClass.ts @@ -19,5 +19,5 @@ export class App { } export const gitcoin = new App("gitcoin", "Gitcoin", {}, "Add to Gitcoin passport", "Gitcoin passport doesn't require to disclosure any data."); -export const soulbond = new App("soulbond", "Soulbond token", { nationality: false, expiry_date: false }, "Mint Soulbond token", "Disclosure the information you want and mint your SBT:"); +export const soulbond = new App("soulbond", "Soulbond token", { nationality: false, expiry_date: false }, "Mint Soulbond token", "Disclosure the information you want and mint your SBT."); export const zuzalu = new App("zuzalu", "Zupass", { date_of_birth: false }, "Add to Zupass", "Zupass requires the following information:");