Skip to content

Commit 82b76c1

Browse files
author
Christoph Pader
committed
add lint changes
1 parent 62c85a1 commit 82b76c1

File tree

774 files changed

+1609
-1332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

774 files changed

+1609
-1332
lines changed

.github/actions/javascript/authorChecklist/categories/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Category from './Category';
1+
import type Category from './Category';
22
import newComponent from './newComponentCategory';
33

44
const categories: Category[] = [newComponent];

.github/actions/javascript/authorChecklist/categories/newComponentCategory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import traverse from '@babel/traverse';
44
import CONST from '../../../../libs/CONST';
55
import GithubUtils from '../../../../libs/GithubUtils';
66
import promiseSome from '../../../../libs/promiseSome';
7-
import Category from './Category';
7+
import type Category from './Category';
88

99
type SuperClassType = {superClass: {name?: string; object: {name: string}; property: {name: string}} | null; name: string};
1010

assets/emojis/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TravelAndPlaces from '@assets/images/emojiCategoryIcons/plane.svg';
77
import AnimalsAndNature from '@assets/images/emojiCategoryIcons/plant.svg';
88
import Activities from '@assets/images/emojiCategoryIcons/soccer-ball.svg';
99
import FrequentlyUsed from '@assets/images/history.svg';
10-
import {HeaderEmoji, PickerEmojis} from './types';
10+
import type {HeaderEmoji, PickerEmojis} from './types';
1111

1212
const skinTones = [
1313
{

assets/emojis/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {EmojisList} from './types';
1+
import type {EmojisList} from './types';
22

33
/* eslint-disable @typescript-eslint/naming-convention */
44
const enEmojis: EmojisList = {

assets/emojis/es.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {EmojisList} from './types';
1+
import type {EmojisList} from './types';
22

33
/* eslint-disable @typescript-eslint/naming-convention */
44
const esEmojis: EmojisList = {

assets/emojis/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import emojis from './common';
22
import enEmojis from './en';
33
import esEmojis from './es';
4-
import {Emoji} from './types';
4+
import type {Emoji} from './types';
55

66
type EmojiTable = Record<string, Emoji>;
77

assets/emojis/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import IconAsset from '@src/types/utils/IconAsset';
1+
import type IconAsset from '@src/types/utils/IconAsset';
22

33
type Emoji = {
44
code: string;

src/CONFIG.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Platform} from 'react-native';
2-
import Config, {NativeConfig} from 'react-native-config';
2+
import type {NativeConfig} from 'react-native-config';
3+
import Config from 'react-native-config';
34
import CONST from './CONST';
45
import getPlatform from './libs/getPlatform';
56
import * as Url from './libs/Url';

src/ONYXKEYS.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {OnyxEntry} from 'react-native-onyx/lib/types';
2-
import {ValueOf} from 'type-fest';
3-
import CONST from './CONST';
4-
import * as OnyxTypes from './types/onyx';
5-
import DeepValueOf from './types/utils/DeepValueOf';
1+
import type {OnyxEntry} from 'react-native-onyx/lib/types';
2+
import type {ValueOf} from 'type-fest';
3+
import type CONST from './CONST';
4+
import type * as OnyxTypes from './types/onyx';
5+
import type DeepValueOf from './types/utils/DeepValueOf';
66

77
/**
88
* This is a file containing constants for all the top level keys in our store

src/ROUTES.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {IsEqual, ValueOf} from 'type-fest';
2-
import CONST from './CONST';
1+
import type {IsEqual, ValueOf} from 'type-fest';
2+
import type CONST from './CONST';
33

44
// This is a file containing constants for all the routes we want to be able to go to
55

src/SCREENS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This is a file containing constants for all of the screen names. In most cases, we should use the routes for
33
* navigation. But there are situations where we may need to access screen names directly.
44
*/
5-
import DeepValueOf from './types/utils/DeepValueOf';
5+
import type DeepValueOf from './types/utils/DeepValueOf';
66

77
const PROTECTED_SCREENS = {
88
HOME: 'Home',

src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Str from 'expensify-common/lib/str';
22
import React, {useEffect, useRef} from 'react';
3-
import {Text as RNText, StyleSheet} from 'react-native';
3+
import type {Text as RNText} from 'react-native';
4+
import { StyleSheet} from 'react-native';
45
import PressableWithSecondaryInteraction from '@components/PressableWithSecondaryInteraction';
56
import Text from '@components/Text';
67
import Tooltip from '@components/Tooltip';

src/components/AnchorForCommentsOnly/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {StyleProp, TextStyle} from 'react-native';
2-
import ChildrenProps from '@src/types/utils/ChildrenProps';
1+
import type {StyleProp, TextStyle} from 'react-native';
2+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
33

44
type AnchorForCommentsOnlyProps = ChildrenProps & {
55
/** The URL to open */

src/components/AnimatedStep/AnimatedStepContext.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React, {createContext} from 'react';
2-
import {ValueOf} from 'type-fest';
3-
import CONST from '@src/CONST';
1+
import type React from 'react';
2+
import {createContext} from 'react';
3+
import type {ValueOf} from 'type-fest';
4+
import type CONST from '@src/CONST';
45

56
type AnimationDirection = ValueOf<typeof CONST.ANIMATION_DIRECTION>;
67

src/components/AnimatedStep/AnimatedStepProvider.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, {useMemo, useState} from 'react';
22
import CONST from '@src/CONST';
3-
import ChildrenProps from '@src/types/utils/ChildrenProps';
4-
import AnimatedStepContext, {AnimationDirection} from './AnimatedStepContext';
3+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
4+
import type {AnimationDirection} from './AnimatedStepContext';
5+
import AnimatedStepContext from './AnimatedStepContext';
56

67
function AnimatedStepProvider({children}: ChildrenProps): React.ReactNode {
78
const [animationDirection, setAnimationDirection] = useState<AnimationDirection>(CONST.ANIMATION_DIRECTION.IN);

src/components/AnimatedStep/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, {useMemo} from 'react';
2-
import {StyleProp, ViewStyle} from 'react-native';
2+
import type {StyleProp, ViewStyle} from 'react-native';
33
import * as Animatable from 'react-native-animatable';
44
import useThemeStyles from '@hooks/useThemeStyles';
55
import useNativeDriver from '@libs/useNativeDriver';
66
import CONST from '@src/CONST';
7-
import ChildrenProps from '@src/types/utils/ChildrenProps';
8-
import {AnimationDirection} from './AnimatedStepContext';
7+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
8+
import type {AnimationDirection} from './AnimatedStepContext';
99

1010
type AnimatedStepProps = ChildrenProps & {
1111
/** Styles to be assigned to Container */

src/components/AnimatedStep/useAnimatedStepContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {useContext} from 'react';
2-
import AnimatedStepContext, {StepContext} from './AnimatedStepContext';
2+
import type {StepContext} from './AnimatedStepContext';
3+
import AnimatedStepContext from './AnimatedStepContext';
34

45
function useAnimatedStepContext(): StepContext {
56
const context = useContext(AnimatedStepContext);

src/components/AnonymousReportFooter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from 'react';
22
import {Text, View} from 'react-native';
3-
import {OnyxCollection} from 'react-native-onyx';
4-
import {OnyxEntry} from 'react-native-onyx/lib/types';
3+
import type {OnyxCollection} from 'react-native-onyx';
4+
import type {OnyxEntry} from 'react-native-onyx/lib/types';
55
import useLocalize from '@hooks/useLocalize';
66
import useThemeStyles from '@hooks/useThemeStyles';
77
import * as Session from '@userActions/Session';
8-
import {PersonalDetails, Report} from '@src/types/onyx';
8+
import type {PersonalDetails, Report} from '@src/types/onyx';
99
import AvatarWithDisplayName from './AvatarWithDisplayName';
1010
import Button from './Button';
1111
import ExpensifyWordmark from './ExpensifyWordmark';

src/components/ArchivedReportFooter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import lodashEscape from 'lodash/escape';
22
import React from 'react';
3-
import {OnyxEntry, withOnyx} from 'react-native-onyx';
3+
import type {OnyxEntry} from 'react-native-onyx';
4+
import { withOnyx} from 'react-native-onyx';
45
import useLocalize from '@hooks/useLocalize';
56
import useThemeStyles from '@hooks/useThemeStyles';
67
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';

src/components/AutoCompleteSuggestions/BaseAutoCompleteSuggestions.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {FlashList} from '@shopify/flash-list';
2-
import React, {ForwardedRef, forwardRef, ReactElement, useCallback, useEffect, useMemo, useRef} from 'react';
3-
import {View} from 'react-native';
2+
import type {ForwardedRef, ReactElement} from 'react';
3+
import React, { forwardRef, useCallback, useEffect, useMemo, useRef} from 'react';
4+
import type {View} from 'react-native';
45
// We take ScrollView from this package to properly handle the scrolling of AutoCompleteSuggestions in chats since one scroll is nested inside another
56
import {ScrollView} from 'react-native-gesture-handler';
67
import Animated, {Easing, FadeOutDown, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';

src/components/AutoCompleteSuggestions/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ReactElement} from 'react';
1+
import type {ReactElement} from 'react';
22

33
type MeasureParentContainerCallback = (x: number, y: number, width: number) => void;
44

src/components/AutoUpdateTime.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
66
import {View} from 'react-native';
77
import useThemeStyles from '@hooks/useThemeStyles';
88
import DateUtils from '@libs/DateUtils';
9-
import {Timezone} from '@src/types/onyx/PersonalDetails';
9+
import type {Timezone} from '@src/types/onyx/PersonalDetails';
1010
import Text from './Text';
11-
import withLocalize, {WithLocalizeProps} from './withLocalize';
11+
import type {WithLocalizeProps} from './withLocalize';
12+
import withLocalize from './withLocalize';
1213

1314
type AutoUpdateTimeProps = WithLocalizeProps & {
1415
/** Timezone of the user from their personal details */

src/components/Avatar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import React, {useEffect, useState} from 'react';
2-
import {StyleProp, View, ViewStyle} from 'react-native';
2+
import type {StyleProp, ViewStyle} from 'react-native';
3+
import { View} from 'react-native';
34
import useNetwork from '@hooks/useNetwork';
45
import useStyleUtils from '@hooks/useStyleUtils';
56
import useTheme from '@hooks/useTheme';
67
import useThemeStyles from '@hooks/useThemeStyles';
78
import * as ReportUtils from '@libs/ReportUtils';
8-
import {AvatarSource} from '@libs/UserUtils';
9+
import type {AvatarSource} from '@libs/UserUtils';
910
import type {AvatarSizeName} from '@styles/utils';
1011
import CONST from '@src/CONST';
11-
import {AvatarType} from '@src/types/onyx/OnyxCommon';
12+
import type {AvatarType} from '@src/types/onyx/OnyxCommon';
1213
import Icon from './Icon';
1314
import * as Expensicons from './Icon/Expensicons';
1415
import Image from './Image';

src/components/AvatarWithDisplayName.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, {useCallback, useEffect, useRef} from 'react';
22
import {View} from 'react-native';
3-
import {OnyxCollection, OnyxEntry, withOnyx} from 'react-native-onyx';
4-
import {ValueOf} from 'type-fest';
3+
import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
4+
import { withOnyx} from 'react-native-onyx';
5+
import type {ValueOf} from 'type-fest';
56
import useStyleUtils from '@hooks/useStyleUtils';
67
import useTheme from '@hooks/useTheme';
78
import useThemeStyles from '@hooks/useThemeStyles';
@@ -11,7 +12,7 @@ import * as ReportUtils from '@libs/ReportUtils';
1112
import CONST from '@src/CONST';
1213
import ONYXKEYS from '@src/ONYXKEYS';
1314
import ROUTES from '@src/ROUTES';
14-
import {PersonalDetails, Policy, Report, ReportActions} from '@src/types/onyx';
15+
import type {PersonalDetails, Policy, Report, ReportActions} from '@src/types/onyx';
1516
import DisplayNames from './DisplayNames';
1617
import MultipleAvatars from './MultipleAvatars';
1718
import ParentNavigationSubtitle from './ParentNavigationSubtitle';

src/components/Badge.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {useCallback} from 'react';
2-
import {GestureResponderEvent, PressableStateCallbackType, StyleProp, TextStyle, View, ViewStyle} from 'react-native';
2+
import type {GestureResponderEvent, PressableStateCallbackType, StyleProp, TextStyle, ViewStyle} from 'react-native';
3+
import { View} from 'react-native';
34
import useStyleUtils from '@hooks/useStyleUtils';
45
import useThemeStyles from '@hooks/useThemeStyles';
56
import CONST from '@src/CONST';

src/components/Banner.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {memo} from 'react';
2-
import {StyleProp, TextStyle, View, ViewStyle} from 'react-native';
2+
import type {StyleProp, TextStyle, ViewStyle} from 'react-native';
3+
import { View} from 'react-native';
34
import useLocalize from '@hooks/useLocalize';
45
import useStyleUtils from '@hooks/useStyleUtils';
56
import useTheme from '@hooks/useTheme';

src/components/BaseMiniContextMenuItem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import React, {ForwardedRef} from 'react';
2-
import {PressableStateCallbackType, View} from 'react-native';
1+
import type {ForwardedRef} from 'react';
2+
import React from 'react';
3+
import type {PressableStateCallbackType} from 'react-native';
4+
import { View} from 'react-native';
35
import useStyleUtils from '@hooks/useStyleUtils';
46
import useThemeStyles from '@hooks/useThemeStyles';
57
import DomUtils from '@libs/DomUtils';

src/components/BlockingViews/BlockingView.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
2-
import {ImageSourcePropType, View} from 'react-native';
3-
import {SvgProps} from 'react-native-svg';
2+
import type {ImageSourcePropType} from 'react-native';
3+
import { View} from 'react-native';
4+
import type {SvgProps} from 'react-native-svg';
45
import AutoEmailLink from '@components/AutoEmailLink';
56
import Icon from '@components/Icon';
67
import Text from '@components/Text';
@@ -9,7 +10,7 @@ import useLocalize from '@hooks/useLocalize';
910
import useThemeStyles from '@hooks/useThemeStyles';
1011
import Navigation from '@libs/Navigation/Navigation';
1112
import variables from '@styles/variables';
12-
import {TranslationPaths} from '@src/languages/types';
13+
import type {TranslationPaths} from '@src/languages/types';
1314

1415
type BlockingViewProps = {
1516
/** Expensicon for the page */

src/components/BlockingViews/FullPageNotFoundView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import useLocalize from '@hooks/useLocalize';
66
import useThemeStyles from '@hooks/useThemeStyles';
77
import Navigation from '@libs/Navigation/Navigation';
88
import variables from '@styles/variables';
9-
import {TranslationPaths} from '@src/languages/types';
9+
import type {TranslationPaths} from '@src/languages/types';
1010
import ROUTES from '@src/ROUTES';
1111
import BlockingView from './BlockingView';
1212

src/components/BlockingViews/FullPageOfflineBlockingView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Expensicons from '@components/Icon/Expensicons';
33
import useLocalize from '@hooks/useLocalize';
44
import useNetwork from '@hooks/useNetwork';
55
import useTheme from '@hooks/useTheme';
6-
import ChildrenProps from '@src/types/utils/ChildrenProps';
6+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
77
import BlockingView from './BlockingView';
88

99
function FullPageOfflineBlockingView({children}: ChildrenProps) {

src/components/Breadcrumbs.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import {StyleProp, View, ViewStyle} from 'react-native';
2+
import type {StyleProp, ViewStyle} from 'react-native';
3+
import { View} from 'react-native';
34
import LogoComponent from '@assets/images/expensify-wordmark.svg';
45
import useTheme from '@hooks/useTheme';
56
import useThemeStyles from '@hooks/useThemeStyles';

src/components/Button/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import {useIsFocused} from '@react-navigation/native';
2-
import React, {ForwardedRef, useCallback} from 'react';
3-
import {ActivityIndicator, GestureResponderEvent, StyleProp, TextStyle, View, ViewStyle} from 'react-native';
2+
import type {ForwardedRef} from 'react';
3+
import React, { useCallback} from 'react';
4+
import type { GestureResponderEvent, StyleProp, TextStyle, ViewStyle} from 'react-native';
5+
import {ActivityIndicator, View} from 'react-native';
46
import Icon from '@components/Icon';
57
import * as Expensicons from '@components/Icon/Expensicons';
68
import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
@@ -12,8 +14,8 @@ import useTheme from '@hooks/useTheme';
1214
import useThemeStyles from '@hooks/useThemeStyles';
1315
import HapticFeedback from '@libs/HapticFeedback';
1416
import CONST from '@src/CONST';
15-
import ChildrenProps from '@src/types/utils/ChildrenProps';
16-
import IconAsset from '@src/types/utils/IconAsset';
17+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
18+
import type IconAsset from '@src/types/utils/IconAsset';
1719
import validateSubmitShortcut from './validateSubmitShortcut';
1820

1921
type ButtonWithText = {

src/components/Button/validateSubmitShortcut/index.native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValidateSubmitShortcut from './types';
1+
import type ValidateSubmitShortcut from './types';
22

33
/**
44
* Validate if the submit shortcut should be triggered depending on the button state

src/components/Button/validateSubmitShortcut/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValidateSubmitShortcut from './types';
1+
import type ValidateSubmitShortcut from './types';
22

33
/**
44
* Validate if the submit shortcut should be triggered depending on the button state

src/components/Button/validateSubmitShortcut/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {GestureResponderEvent} from 'react-native';
1+
import type {GestureResponderEvent} from 'react-native';
22

33
type ValidateSubmitShortcut = (isFocused: boolean, isDisabled: boolean, isLoading: boolean, event?: GestureResponderEvent | KeyboardEvent) => boolean;
44

src/components/CardPreview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from 'react';
22
import {View} from 'react-native';
3-
import {OnyxEntry, withOnyx} from 'react-native-onyx';
3+
import type {OnyxEntry} from 'react-native-onyx';
4+
import { withOnyx} from 'react-native-onyx';
45
import ExpensifyCardImage from '@assets/images/expensify-card.svg';
56
import usePrivatePersonalDetails from '@hooks/usePrivatePersonalDetails';
67
import useThemeStyles from '@hooks/useThemeStyles';
78
import variables from '@styles/variables';
89
import ONYXKEYS from '@src/ONYXKEYS';
9-
import {PrivatePersonalDetails, Session} from '@src/types/onyx';
10+
import type {PrivatePersonalDetails, Session} from '@src/types/onyx';
1011
import ImageSVG from './ImageSVG';
1112
import Text from './Text';
1213

src/components/Checkbox.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import React, {type ForwardedRef, forwardRef, type MouseEventHandler, type KeyboardEvent as ReactKeyboardEvent} from 'react';
2-
import {GestureResponderEvent, StyleProp, View, ViewStyle} from 'react-native';
1+
import React, { forwardRef } from 'react';
2+
import type {ForwardedRef, MouseEventHandler, KeyboardEvent as ReactKeyboardEvent} from 'react';
3+
import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native';
4+
import { View} from 'react-native';
35
import useStyleUtils from '@hooks/useStyleUtils';
46
import useTheme from '@hooks/useTheme';
57
import useThemeStyles from '@hooks/useThemeStyles';
68
import CONST from '@src/CONST';
7-
import ChildrenProps from '@src/types/utils/ChildrenProps';
9+
import type ChildrenProps from '@src/types/utils/ChildrenProps';
810
import Icon from './Icon';
911
import * as Expensicons from './Icon/Expensicons';
1012
import PressableWithFeedback from './Pressable/PressableWithFeedback';

src/components/CheckboxWithLabel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import React, {ComponentType, ForwardedRef, useState} from 'react';
2-
import {StyleProp, View, ViewStyle} from 'react-native';
1+
import type {ComponentType, ForwardedRef} from 'react';
2+
import React, { useState} from 'react';
3+
import type {StyleProp, ViewStyle} from 'react-native';
4+
import { View} from 'react-native';
35
import useThemeStyles from '@hooks/useThemeStyles';
46
import variables from '@styles/variables';
57
import Checkbox from './Checkbox';

0 commit comments

Comments
 (0)