From 9ea48dfd890ad3d48c52bc0e8066bb5ce31f187f Mon Sep 17 00:00:00 2001 From: Yuwen Memon Date: Thu, 11 Jan 2024 10:58:52 +0800 Subject: [PATCH] Fix linter error for type imports --- .../SignInButtons/AppleSignIn/index.website.tsx | 8 +++++--- src/components/SignInButtons/GetUserLanguage.ts | 2 +- .../SignInButtons/GoogleSignIn/index.website.tsx | 2 +- src/components/SignInButtons/IconButton.tsx | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/SignInButtons/AppleSignIn/index.website.tsx b/src/components/SignInButtons/AppleSignIn/index.website.tsx index f256330c2344..9d7322878c98 100644 --- a/src/components/SignInButtons/AppleSignIn/index.website.tsx +++ b/src/components/SignInButtons/AppleSignIn/index.website.tsx @@ -1,12 +1,14 @@ import React, {useEffect, useState} from 'react'; -import Config, {NativeConfig} from 'react-native-config'; +import type {NativeConfig} from 'react-native-config'; +import Config from 'react-native-config'; import getUserLanguage from '@components/SignInButtons/GetUserLanguage'; -import withNavigationFocus, {WithNavigationFocusProps} from '@components/withNavigationFocus'; +import type {WithNavigationFocusProps} from '@components/withNavigationFocus'; +import withNavigationFocus from '@components/withNavigationFocus'; import Log from '@libs/Log'; import * as Session from '@userActions/Session'; import CONFIG from '@src/CONFIG'; import CONST from '@src/CONST'; -import {AppleIDSignInOnFailureEvent, AppleIDSignInOnSuccessEvent} from '@src/types/modules/dom'; +import type {AppleIDSignInOnFailureEvent, AppleIDSignInOnSuccessEvent} from '@src/types/modules/dom'; // react-native-config doesn't trim whitespace on iOS for some reason so we // add a trim() call to lodashGet here to prevent headaches. diff --git a/src/components/SignInButtons/GetUserLanguage.ts b/src/components/SignInButtons/GetUserLanguage.ts index 611ba415008b..a1101e92f656 100644 --- a/src/components/SignInButtons/GetUserLanguage.ts +++ b/src/components/SignInButtons/GetUserLanguage.ts @@ -1,4 +1,4 @@ -import {ValueOf} from 'type-fest'; +import type {ValueOf} from 'type-fest'; const localeCodes = { en: 'en_US', diff --git a/src/components/SignInButtons/GoogleSignIn/index.website.tsx b/src/components/SignInButtons/GoogleSignIn/index.website.tsx index 5d419c8744e5..3cc4cdebffa6 100644 --- a/src/components/SignInButtons/GoogleSignIn/index.website.tsx +++ b/src/components/SignInButtons/GoogleSignIn/index.website.tsx @@ -5,7 +5,7 @@ import useThemeStyles from '@hooks/useThemeStyles'; import * as Session from '@userActions/Session'; import CONFIG from '@src/CONFIG'; import CONST from '@src/CONST'; -import Response from '@src/types/modules/google'; +import type Response from '@src/types/modules/google'; type GoogleSignInProps = { isDesktopFlow?: boolean; diff --git a/src/components/SignInButtons/IconButton.tsx b/src/components/SignInButtons/IconButton.tsx index 848ca5463854..7ef476cff18a 100644 --- a/src/components/SignInButtons/IconButton.tsx +++ b/src/components/SignInButtons/IconButton.tsx @@ -1,13 +1,13 @@ import React from 'react'; -import {ValueOf} from 'type-fest'; +import type {ValueOf} from 'type-fest'; import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; -import {TranslationPaths} from '@src/languages/types'; -import IconAsset from '@src/types/utils/IconAsset'; +import type {TranslationPaths} from '@src/languages/types'; +import type IconAsset from '@src/types/utils/IconAsset'; const providerData = { [CONST.SIGN_IN_METHOD.APPLE]: {