From 473c8953e6be1ef80bbecc909d42b7da8db5fd65 Mon Sep 17 00:00:00 2001 From: Alexander Shenshin Date: Sun, 28 Apr 2024 04:31:33 +0300 Subject: [PATCH] Fix lint errors Signed-off-by: Alexander Shenshin --- example/src/components/views/QRCodeView.tsx | 18 ++++++++++-------- example/src/screens/ProximityPresentation.tsx | 4 ++-- src/EudiWallet.ts | 5 ++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/example/src/components/views/QRCodeView.tsx b/example/src/components/views/QRCodeView.tsx index 08ed454..de6dd3e 100644 --- a/example/src/components/views/QRCodeView.tsx +++ b/example/src/components/views/QRCodeView.tsx @@ -1,6 +1,6 @@ +import { Buffer } from '@craftzdog/react-native-buffer' import React, { useState } from 'react' import { StyleSheet, View, Text, Platform, Image } from 'react-native' -import { Buffer } from "@craftzdog/react-native-buffer" import QRCode from 'react-native-qrcode-svg' const styles = StyleSheet.create({ @@ -33,16 +33,18 @@ export const QRCodeView: React.FC = ({ value, size }) => { const onQRGenerationError = () => { setIsInvalidQR(true) } - + return ( - { + { // TODO: Remove this after Android/iOS QR content inconsistency fixed - Platform.OS === 'ios' - ? - : - } - { isInvalidQR && {'QR generation error'} } + Platform.OS === 'ios' ? ( + + ) : ( + + ) + } + {isInvalidQR && {'QR generation error'}} ) } diff --git a/example/src/screens/ProximityPresentation.tsx b/example/src/screens/ProximityPresentation.tsx index 2a0d6a2..f5f3938 100644 --- a/example/src/screens/ProximityPresentation.tsx +++ b/example/src/screens/ProximityPresentation.tsx @@ -86,10 +86,10 @@ export const ProximityPresentation: React.FC = () => { - { qrCodeContent && } + {qrCodeContent && } - { isAndroid && Or use the NFC } + {isAndroid && Or use the NFC} diff --git a/src/EudiWallet.ts b/src/EudiWallet.ts index 229fe5d..5846b12 100644 --- a/src/EudiWallet.ts +++ b/src/EudiWallet.ts @@ -49,10 +49,9 @@ export abstract class EudiWallet { sendSessionTerminationMessage: boolean = true, useTransportSpecificSessionTermination: boolean = false, ): void { - if(Platform.OS === 'android') { + if (Platform.OS === 'android') { EudiWalletModule.stopPresentation(sendSessionTerminationMessage, useTransportSpecificSessionTermination) - } - else { + } else { EudiWalletModule.stopPresentation() } }