diff --git a/packages/legacy/core/App/screens/CredentialOfferAccept.tsx b/packages/legacy/core/App/screens/CredentialOfferAccept.tsx index 1d5bea98f3..6c996b8256 100644 --- a/packages/legacy/core/App/screens/CredentialOfferAccept.tsx +++ b/packages/legacy/core/App/screens/CredentialOfferAccept.tsx @@ -3,7 +3,7 @@ import { useCredentialById } from '@aries-framework/react-hooks' import { useNavigation } from '@react-navigation/core' import React, { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' -import { Platform, Modal, StatusBar, StyleSheet, Text, View, ScrollView, AccessibilityInfo } from 'react-native' +import { Modal, StyleSheet, Text, View, ScrollView, AccessibilityInfo } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import Button, { ButtonType } from '../components/buttons/Button' @@ -11,7 +11,6 @@ import { useAnimatedComponents } from '../contexts/animated-components' import { useConfiguration } from '../contexts/configuration' import { useTheme } from '../contexts/theme' import { Screens, TabStacks } from '../types/navigators' -import { statusBarStyleForColor, StatusBarStyles } from '../utils/luminance' import { testIdWithKey } from '../utils/testable' enum DeliveryStatus { @@ -108,11 +107,6 @@ const CredentialOfferAccept: React.FC = ({ visible, return ( - {credentialDeliveryStatus === DeliveryStatus.Pending && ( diff --git a/packages/legacy/core/App/screens/PINCreate.tsx b/packages/legacy/core/App/screens/PINCreate.tsx index f3b44c3cf2..123fd0f1b2 100644 --- a/packages/legacy/core/App/screens/PINCreate.tsx +++ b/packages/legacy/core/App/screens/PINCreate.tsx @@ -8,7 +8,6 @@ import { Keyboard, StyleSheet, Text, - StatusBar, View, TextInput, TouchableOpacity, @@ -32,7 +31,6 @@ import { useTheme } from '../contexts/theme' import { BifoldError } from '../types/error' import { AuthenticateStackParams, Screens } from '../types/navigators' import { PINCreationValidations, PINValidationsType } from '../utils/PINCreationValidation' -import { StatusBarStyles } from '../utils/luminance' import { testIdWithKey } from '../utils/testable' interface PINCreateProps extends StackScreenProps { @@ -171,7 +169,6 @@ const PINCreate: React.FC = ({ setAuthenticated, route }) => { return ( - diff --git a/packages/legacy/core/App/screens/PINEnter.tsx b/packages/legacy/core/App/screens/PINEnter.tsx index c42e9e9d48..0cd59321c7 100644 --- a/packages/legacy/core/App/screens/PINEnter.tsx +++ b/packages/legacy/core/App/screens/PINEnter.tsx @@ -2,7 +2,7 @@ import { useNavigation } from '@react-navigation/core' import { CommonActions } from '@react-navigation/native' import React, { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' -import { StatusBar, Keyboard, StyleSheet, Text, Image, View, DeviceEventEmitter } from 'react-native' +import { Keyboard, StyleSheet, Text, Image, View, DeviceEventEmitter } from 'react-native' import Button, { ButtonType } from '../components/buttons/Button' import PINInput from '../components/inputs/PINInput' @@ -18,7 +18,6 @@ import { useTheme } from '../contexts/theme' import { BifoldError } from '../types/error' import { Screens } from '../types/navigators' import { hashPIN } from '../utils/crypto' -import { StatusBarStyles } from '../utils/luminance' import { testIdWithKey } from '../utils/testable' interface PINEnterProps { @@ -297,7 +296,6 @@ const PINEnter: React.FC = ({ setAuthenticated, usage = PINEntryU return ( - diff --git a/packages/legacy/core/App/screens/ProofRequestAccept.tsx b/packages/legacy/core/App/screens/ProofRequestAccept.tsx index 8ed1e354b7..beef30f9e8 100644 --- a/packages/legacy/core/App/screens/ProofRequestAccept.tsx +++ b/packages/legacy/core/App/screens/ProofRequestAccept.tsx @@ -3,14 +3,13 @@ import { useProofById } from '@aries-framework/react-hooks' import { useNavigation } from '@react-navigation/core' import React, { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' -import { Platform, Modal, StatusBar, StyleSheet, Text, View, ScrollView } from 'react-native' +import { Modal, StyleSheet, Text, View, ScrollView } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import Button, { ButtonType } from '../components/buttons/Button' import { useAnimatedComponents } from '../contexts/animated-components' import { useTheme } from '../contexts/theme' import { Screens, TabStacks } from '../types/navigators' -import { statusBarStyleForColor, StatusBarStyles } from '../utils/luminance' import { testIdWithKey } from '../utils/testable' export interface ProofRequestAcceptProps { @@ -73,11 +72,6 @@ const ProofRequestAccept: React.FC = ({ visible, proofI return ( - diff --git a/packages/legacy/core/App/screens/UseBiometry.tsx b/packages/legacy/core/App/screens/UseBiometry.tsx index 9a7cd0e4c5..456d2a4435 100644 --- a/packages/legacy/core/App/screens/UseBiometry.tsx +++ b/packages/legacy/core/App/screens/UseBiometry.tsx @@ -1,17 +1,6 @@ import React, { useState, useEffect } from 'react' import { useTranslation } from 'react-i18next' -import { - StyleSheet, - Text, - View, - Modal, - Switch, - StatusBar, - Platform, - ScrollView, - Pressable, - DeviceEventEmitter, -} from 'react-native' +import { StyleSheet, Text, View, Modal, Switch, ScrollView, Pressable, DeviceEventEmitter } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import Button, { ButtonType } from '../components/buttons/Button' @@ -21,7 +10,6 @@ import { useAuth } from '../contexts/auth' import { DispatchAction } from '../contexts/reducers/store' import { useStore } from '../contexts/store' import { useTheme } from '../contexts/theme' -import { statusBarStyleForColor, StatusBarStyles } from '../utils/luminance' import { testIdWithKey } from '../utils/testable' import PINEnter, { PINEntryUsage } from './PINEnter' @@ -120,9 +108,6 @@ const UseBiometry: React.FC = () => { return ( - diff --git a/packages/legacy/core/__tests__/components/CameraDisclosureModal.test.tsx b/packages/legacy/core/__tests__/components/CameraDisclosureModal.test.tsx index 0e087441d7..738816119c 100644 --- a/packages/legacy/core/__tests__/components/CameraDisclosureModal.test.tsx +++ b/packages/legacy/core/__tests__/components/CameraDisclosureModal.test.tsx @@ -1,7 +1,6 @@ import { useNavigation } from '@react-navigation/core' import { render, fireEvent, act } from '@testing-library/react-native' import React from 'react' - import CameraDisclosureModal from '../../App/components/modals/CameraDisclosureModal' import { testIdWithKey } from '../../App/utils/testable' @@ -14,10 +13,10 @@ jest.mock('@react-navigation/native', () => { }) describe('CameraDisclosureModal Component', () => { - beforeAll(()=>{ + beforeAll(() => { jest.useFakeTimers() }) - afterAll(()=>{ + afterAll(() => { jest.useRealTimers() }) beforeEach(() => {