From d7ddbcc0d50c1f6cf393e9c3ecbbaa33d081078e Mon Sep 17 00:00:00 2001 From: Avinash Lingaloo <> Date: Mon, 14 Jun 2021 10:02:02 +0400 Subject: [PATCH] Fix : Clean up imports --- app/requests/local/systems.ts | 2 +- app/screens/index.tsx | 10 ++++------ test/setup.ts | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/requests/local/systems.ts b/app/requests/local/systems.ts index 53da6d7ca0..1a5fda5b1d 100644 --- a/app/requests/local/systems.ts +++ b/app/requests/local/systems.ts @@ -5,7 +5,7 @@ import Operator from '@database/operator'; import {ServerUrlChangedArgs} from '@typings/database/database'; import {IsolatedEntities} from '@typings/database/enums'; import System from '@typings/database/system'; -import {getActiveServerDatabase, getDefaultDatabase} from '@utils/database'; +import {getActiveServerDatabase} from '@utils/database'; /** * setLastUpgradeCheck: Takes in 'config' record from System entity and update its lastUpdateCheck to Date.now() diff --git a/app/screens/index.tsx b/app/screens/index.tsx index 8a55e170ba..76bf65808d 100644 --- a/app/screens/index.tsx +++ b/app/screens/index.tsx @@ -1,17 +1,15 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -import DatabaseManager from '@database/manager'; +import {DEFAULT_LOCALE, getTranslations} from '@i18n'; import {withManagedConfig} from '@mattermost/react-native-emm'; import React from 'react'; -import {Platform, StyleProp, ViewStyle} from 'react-native'; import {IntlProvider} from 'react-intl'; - -import {Navigation, NavigationFunctionComponent} from 'react-native-navigation'; +import {Platform, StyleProp, ViewStyle} from 'react-native'; import {gestureHandlerRootHOC} from 'react-native-gesture-handler'; -import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider'; +import {Navigation, NavigationFunctionComponent} from 'react-native-navigation'; + import {Screens} from '@constants'; -import {DEFAULT_LOCALE, getTranslations} from '@i18n'; // TODO: Remove this and uncomment screens as they get added /* eslint-disable */ diff --git a/test/setup.ts b/test/setup.ts index c698e477c9..f73d1fdca8 100644 --- a/test/setup.ts +++ b/test/setup.ts @@ -21,7 +21,6 @@ global.window = {}; jest.doMock('react-native', () => { const { - Appearance, Platform, StyleSheet, ViewPropTypes,