diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-09-09 18:09:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-09 08:09:10 -0700 |
commit | 3e2c181c404e2070873bc9c473b428a610bd193e (patch) | |
tree | 3a579b8e99852ffa339756e2069850dce4151d09 /src/view/shell | |
parent | d496a223522b4cdefef0a8725ce31d05e398e68f (diff) | |
download | voidsky-3e2c181c404e2070873bc9c473b428a610bd193e.tar.zst |
Upgrade `@types/react` to 19 and run codemod (attempt 2) (#8918)
* update dependencies * rm `import type React from 'react'` * run codemods * patch discord types * update types/react-dom * Update yarn.lock
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/Drawer.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/bottom-bar/BottomBar.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/bottom-bar/BottomBarWeb.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 4a797e578..832e4fc3a 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -1,4 +1,4 @@ -import React, {type ComponentProps} from 'react' +import React, {type ComponentProps, type JSX} from 'react' import {Linking, ScrollView, TouchableOpacity, View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {msg, Plural, plural, Trans} from '@lingui/macro' diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 01aa4afc4..4b596869e 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -1,4 +1,4 @@ -import {useCallback} from 'react' +import {type JSX, useCallback} from 'react' import {type GestureResponderEvent, View} from 'react-native' import Animated from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' diff --git a/src/view/shell/bottom-bar/BottomBarWeb.tsx b/src/view/shell/bottom-bar/BottomBarWeb.tsx index 8dce85cd1..c884673cd 100644 --- a/src/view/shell/bottom-bar/BottomBarWeb.tsx +++ b/src/view/shell/bottom-bar/BottomBarWeb.tsx @@ -230,7 +230,7 @@ export function BottomBarWeb() { } const NavItem: React.FC<{ - children: (props: {isActive: boolean}) => React.ReactChild + children: (props: {isActive: boolean}) => React.ReactNode href: string routeName: string hasNew?: boolean diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 5c22198c8..b89d77294 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -1,4 +1,4 @@ -import {useCallback, useMemo, useState} from 'react' +import {type JSX, useCallback, useMemo, useState} from 'react' import {StyleSheet, View} from 'react-native' import {type AppBskyActorDefs} from '@atproto/api' import {msg, plural, Trans} from '@lingui/macro' |