From f10360406f614cd15e17e7e77ec235875d3121d5 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 16 May 2025 17:36:22 -0700 Subject: [PATCH] rm import type React --- src/alf/typography.tsx | 1 - src/components/ContextMenu/types.ts | 1 - src/components/Dialog/shared.tsx | 1 - src/components/Dialog/types.ts | 1 - src/components/PostControls/PostMenu/index.tsx | 1 - src/components/ProfileHoverCard/types.ts | 2 -- src/components/dms/ActionsWrapper.web.tsx | 1 - src/state/shell/index.tsx | 2 -- src/view/com/composer/photos/EditImageDialog.tsx | 2 -- src/view/com/util/EventStopper.tsx | 1 - src/view/com/util/PostMeta.tsx | 1 - src/view/com/util/Toast.web.tsx | 1 - 12 files changed, 15 deletions(-) diff --git a/src/alf/typography.tsx b/src/alf/typography.tsx index a3bed4e4c8..c229ab4435 100644 --- a/src/alf/typography.tsx +++ b/src/alf/typography.tsx @@ -3,7 +3,6 @@ import {type TextProps as RNTextProps} from 'react-native' import {type StyleProp, type TextStyle} from 'react-native' import {UITextView} from 'react-native-uitextview' import createEmojiRegex from 'emoji-regex' -import type React from 'react' import {isNative} from '#/platform/detection' import {isIOS} from '#/platform/detection' diff --git a/src/components/ContextMenu/types.ts b/src/components/ContextMenu/types.ts index 265a746ca4..13f365e533 100644 --- a/src/components/ContextMenu/types.ts +++ b/src/components/ContextMenu/types.ts @@ -5,7 +5,6 @@ import { type ViewStyle, } from 'react-native' import {type SharedValue} from 'react-native-reanimated' -import type React from 'react' import type * as Dialog from '#/components/Dialog' import { diff --git a/src/components/Dialog/shared.tsx b/src/components/Dialog/shared.tsx index 40d0408788..882233e29f 100644 --- a/src/components/Dialog/shared.tsx +++ b/src/components/Dialog/shared.tsx @@ -5,7 +5,6 @@ import { View, type ViewStyle, } from 'react-native' -import type React from 'react' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index d9b339a27b..956d66a444 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -5,7 +5,6 @@ import { } from 'react-native' import {type ViewStyle} from 'react-native' import {type StyleProp} from 'react-native' -import type React from 'react' import {type ViewStyleProp} from '#/alf' import {type BottomSheetViewProps} from '../../../modules/bottom-sheet' diff --git a/src/components/PostControls/PostMenu/index.tsx b/src/components/PostControls/PostMenu/index.tsx index 63aa460fbd..51260c4656 100644 --- a/src/components/PostControls/PostMenu/index.tsx +++ b/src/components/PostControls/PostMenu/index.tsx @@ -7,7 +7,6 @@ import { } from '@atproto/api' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import type React from 'react' import {type Shadow} from '#/state/cache/post-shadow' import {EventStopper} from '#/view/com/util/EventStopper' diff --git a/src/components/ProfileHoverCard/types.ts b/src/components/ProfileHoverCard/types.ts index 5450adf5b3..b99bf7913e 100644 --- a/src/components/ProfileHoverCard/types.ts +++ b/src/components/ProfileHoverCard/types.ts @@ -1,5 +1,3 @@ -import type React from 'react' - export type ProfileHoverCardProps = { children: React.ReactElement did: string diff --git a/src/components/dms/ActionsWrapper.web.tsx b/src/components/dms/ActionsWrapper.web.tsx index 75a9b5278e..f45aa4ab94 100644 --- a/src/components/dms/ActionsWrapper.web.tsx +++ b/src/components/dms/ActionsWrapper.web.tsx @@ -3,7 +3,6 @@ import {Pressable, View} from 'react-native' import {type ChatBskyConvoDefs} from '@atproto/api' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import type React from 'react' import {useConvoActive} from '#/state/messages/convo' import {useSession} from '#/state/session' diff --git a/src/state/shell/index.tsx b/src/state/shell/index.tsx index 92cf520a34..809a521bf7 100644 --- a/src/state/shell/index.tsx +++ b/src/state/shell/index.tsx @@ -1,5 +1,3 @@ -import type React from 'react' - import {Provider as ColorModeProvider} from './color-mode' import {Provider as DrawerOpenProvider} from './drawer-open' import {Provider as DrawerSwipableProvider} from './drawer-swipe-disabled' diff --git a/src/view/com/composer/photos/EditImageDialog.tsx b/src/view/com/composer/photos/EditImageDialog.tsx index 9799f7b82f..9a0eb90848 100644 --- a/src/view/com/composer/photos/EditImageDialog.tsx +++ b/src/view/com/composer/photos/EditImageDialog.tsx @@ -1,5 +1,3 @@ -import type React from 'react' - import {type ComposerImage} from '#/state/gallery' import type * as Dialog from '#/components/Dialog' diff --git a/src/view/com/util/EventStopper.tsx b/src/view/com/util/EventStopper.tsx index 24bc47afd2..fe81ac4c8f 100644 --- a/src/view/com/util/EventStopper.tsx +++ b/src/view/com/util/EventStopper.tsx @@ -1,5 +1,4 @@ import {View, type ViewStyle} from 'react-native' -import type React from 'react' /** * This utility function captures events and stops diff --git a/src/view/com/util/PostMeta.tsx b/src/view/com/util/PostMeta.tsx index 62ba32c9b3..b2680b2f57 100644 --- a/src/view/com/util/PostMeta.tsx +++ b/src/view/com/util/PostMeta.tsx @@ -4,7 +4,6 @@ import {type AppBskyActorDefs, type ModerationDecision} from '@atproto/api' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useQueryClient} from '@tanstack/react-query' -import type React from 'react' import {useActorStatus} from '#/lib/actor-status' import {makeProfileLink} from '#/lib/routes/links' diff --git a/src/view/com/util/Toast.web.tsx b/src/view/com/util/Toast.web.tsx index 7e22fcefc1..d3b7bda33e 100644 --- a/src/view/com/util/Toast.web.tsx +++ b/src/view/com/util/Toast.web.tsx @@ -9,7 +9,6 @@ import { type FontAwesomeIconStyle, type Props as FontAwesomeProps, } from '@fortawesome/react-native-fontawesome' -import type React from 'react' const DURATION = 3500