diff --git a/eslint-suppressions.json b/eslint-suppressions.json index c1d213d875..d3db4dfa15 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -1087,14 +1087,6 @@ "count": 1 } }, - "src/screens/Hashtag.tsx": { - "@typescript-eslint/no-floating-promises": { - "count": 2 - }, - "@typescript-eslint/no-misused-promises": { - "count": 1 - } - }, "src/screens/Home/NoFeedsPinned.tsx": { "@typescript-eslint/no-misused-promises": { "count": 1 @@ -1489,14 +1481,6 @@ "count": 1 } }, - "src/screens/Topic.tsx": { - "@typescript-eslint/no-floating-promises": { - "count": 2 - }, - "@typescript-eslint/no-misused-promises": { - "count": 1 - } - }, "src/state/a11y.tsx": { "@typescript-eslint/no-floating-promises": { "count": 1 diff --git a/src/analytics/features/types.ts b/src/analytics/features/types.ts index 4b2035fa53..63d1ab0da4 100644 --- a/src/analytics/features/types.ts +++ b/src/analytics/features/types.ts @@ -12,8 +12,6 @@ export enum Features { GroupChatsDisable = 'group_chats:disable', ComposerLanguageDetectionEnable = 'composer:language_detection:enable', PostGalleryEmbedEnable = 'post_gallery_embed:enable', - SearchV2Enable = 'search_v2:enable', - AdvancedSearchV2Enable = 'advanced_search_v2:enable', AATest = 'aa-test', } diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index e4f08291c9..39c2341f88 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -1,9 +1,7 @@ import {useCallback, useMemo, useState} from 'react' import {type ListRenderItemInfo, View} from 'react-native' import {type AppBskyFeedDefs} from '@atproto/api' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {Trans, useLingui} from '@lingui/react/macro' import {type NativeStackScreenProps} from '@react-navigation/native-stack' import {HITSLOP_10} from '#/lib/constants' @@ -14,7 +12,7 @@ import {shareUrl} from '#/lib/sharing' import {cleanError} from '#/lib/strings/errors' import {sanitizeHandle} from '#/lib/strings/handles' import {enforceLen} from '#/lib/strings/helpers' -import {useSearchPostsQuery} from '#/state/queries/search-posts' +import {useSearchPostsV2Query} from '#/state/queries/search-posts-v2' import {useSession} from '#/state/session' import {useLoggedOutViewControls} from '#/state/shell/logged-out' import {useCloseAllActiveElements} from '#/state/util' @@ -43,7 +41,7 @@ export default function HashtagScreen({ route, }: NativeStackScreenProps) { const {tag, author} = route.params - const {_} = useLingui() + const {t: l} = useLingui() const decodedTag = useMemo(() => { return decodeURIComponent(tag) @@ -73,7 +71,7 @@ export default function HashtagScreen({ if (author) { url.searchParams.set('author', author) } - shareUrl(url.toString()) + void shareUrl(url.toString()) }, [tag, author]) const [activeTab, setActiveTab] = useState(0) @@ -85,7 +83,7 @@ export default function HashtagScreen({ const sections = useMemo(() => { return [ { - title: _(msg`Top`), + title: l`Top`, component: ( @@ -122,14 +120,14 @@ export default function HashtagScreen({ {author && ( {author.startsWith('did:') - ? _(msg`From ${sanitizedAuthor}`) - : _(msg`From @${sanitizedAuthor}`)} + ? l`From ${sanitizedAuthor}` + : l`From @${sanitizedAuthor}`} )}