refactor: remove re export for stacked hooks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { atom } from "jotai"
|
||||
import { useCallback } from "react"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { createAtomHooks } from "~/lib/jotai"
|
||||
import { SourceContentView } from "~/modules/entry-content/components/SourceContentView"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { FeedForm } from "~/modules/discover/feed-form"
|
||||
import { entries } from "~/queries/entries"
|
||||
|
||||
import type { AppErrorFallbackProps } from "../common/AppErrorBoundary"
|
||||
import { useModalStack } from "../ui/modal"
|
||||
import { useModalStack } from "../ui/modal/stacked/hooks"
|
||||
import { CustomSafeError, useResetErrorWhenRouteChange } from "./helper"
|
||||
import { FeedPreview } from "./previews/FeedPreview"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { attachOpenInEditor } from "~/lib/dev"
|
||||
import type { AppErrorFallbackProps } from "../common/AppErrorBoundary"
|
||||
import { FeedbackIssue } from "../common/ErrorElement"
|
||||
import { m } from "../common/Motion"
|
||||
import { useCurrentModal } from "../ui/modal"
|
||||
import { useCurrentModal } from "../ui/modal/stacked/hooks"
|
||||
import { parseError } from "./helper"
|
||||
|
||||
const ModalErrorFallback: FC<AppErrorFallbackProps> = (props) => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { AnimatePresence, m } from "framer-motion"
|
||||
import Fuse from "fuse.js"
|
||||
import { forwardRef, Fragment, useCallback, useEffect, useState } from "react"
|
||||
|
||||
import { useCorrectZIndex } from "../modal"
|
||||
import { useCorrectZIndex } from "../modal/stacked/hooks"
|
||||
|
||||
export type Suggestion = {
|
||||
name: string
|
||||
|
||||
@@ -20,7 +20,7 @@ import { replaceImgUrlIfNeed } from "~/lib/img-proxy"
|
||||
import { EntryContent } from "~/modules/entry-content"
|
||||
|
||||
import { microReboundPreset } from "../constants/spring"
|
||||
import { useCurrentModal } from "../modal"
|
||||
import { useCurrentModal } from "../modal/stacked/hooks"
|
||||
import { VideoPlayer } from "./VideoPlayer"
|
||||
|
||||
const Wrapper: Component<{
|
||||
|
||||
@@ -6,7 +6,7 @@ import { m } from "framer-motion"
|
||||
import * as React from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { createErrorToaster } from "~/lib/error-parser"
|
||||
|
||||
export interface UseAsyncFetcher<T> {
|
||||
|
||||
@@ -5,10 +5,10 @@ import { createContext, createElement, useContext } from "react"
|
||||
import { useEventCallback } from "usehooks-ts"
|
||||
|
||||
import type { ModalActionsInternal } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import type { UseAsyncFetcher } from "~/components/ui/modal/helper/async-loading"
|
||||
import { AsyncModalContent } from "~/components/ui/modal/helper/async-loading"
|
||||
import { NoopChildren } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
|
||||
export type AsyncModalOptions<T> = {
|
||||
id: string
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Link } from "react-router-dom"
|
||||
import { m } from "~/components/common/Motion"
|
||||
|
||||
import { microReboundPreset } from "../../constants/spring"
|
||||
import { useModalStack } from "../stacked"
|
||||
import { useModalStack } from "../stacked/hooks"
|
||||
|
||||
const InPeekModal = createContext(false)
|
||||
export const useInPeekModal = () => useContext(InPeekModal)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export * from "./context"
|
||||
export * from "./helper"
|
||||
export * from "./hooks"
|
||||
// NOTE: This one can easily cause a circular dependency
|
||||
// export * from "./hooks"
|
||||
export * from "./modal"
|
||||
export * from "./provider"
|
||||
export * from "./types"
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useMemo } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { whoami } from "~/atoms/user"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import type { NativeMenuItem, NullableNativeMenuItem } from "~/lib/native-menu"
|
||||
import { useBoostModal } from "~/modules/boost/hooks"
|
||||
import { useFeedClaimModal } from "~/modules/claim"
|
||||
|
||||
@@ -2,7 +2,7 @@ import { DEEPLINK_SCHEME } from "@follow/shared/constants"
|
||||
import { useCallback } from "react"
|
||||
|
||||
import { useWhoami } from "~/atoms/user"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { FeedForm } from "~/modules/discover/feed-form"
|
||||
import { ListForm } from "~/modules/discover/list-form"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useEventCallback } from "usehooks-ts"
|
||||
|
||||
import { useUserRole } from "~/atoms/user"
|
||||
import { CustomSafeError } from "~/components/errors/helper"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { MAX_TRIAL_USER_FEED_SUBSCRIPTION } from "~/constants/limit"
|
||||
import { useActivationModal } from "~/modules/activation"
|
||||
import type { FeedFormDataValuesType } from "~/modules/discover/feed-form"
|
||||
|
||||
@@ -19,7 +19,7 @@ import { useEffect, useId, useMemo, useRef } from "react"
|
||||
import { Trans, useTranslation } from "react-i18next"
|
||||
|
||||
import { useServerConfigs } from "~/atoms/server-configs"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useI18n } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import achievementAnimationUri from "~/lottie/achievement.lottie?url"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback } from "react"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { SlideUpModal } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
|
||||
import { AchievementModalContent } from "./AchievementModalContent"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import { useTranslation } from "react-i18next"
|
||||
import { z } from "zod"
|
||||
|
||||
import type { ModalActionsInternal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { getFetchErrorMessage } from "~/lib/error-parser"
|
||||
import confettiUrl from "~/lottie/confetti.lottie?url"
|
||||
import { auth } from "~/queries/auth"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
|
||||
import { ActivationModalContent } from "./ActivationModalContent"
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ import { Markdown } from "~/components/ui/markdown/Markdown"
|
||||
import { MarkdownLink } from "~/components/ui/markdown/renderers"
|
||||
import { Media } from "~/components/ui/media"
|
||||
import { usePreviewMedia } from "~/components/ui/media/hooks"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { PeekModal } from "~/components/ui/modal/inspire/PeekModal"
|
||||
import { PlainModal } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { Paper } from "~/components/ui/paper"
|
||||
import { useAuthQuery } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
|
||||
import { FeedDailyModalContent } from "./FeedDailyModalContent"
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import { AnimatePresence, m } from "framer-motion"
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { modalMontionConfig } from "~/components/ui/modal/stacked/constants"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import type { LoginRuntime } from "~/lib/auth"
|
||||
import { loginHandler } from "~/lib/auth"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AnimatePresence, m } from "framer-motion"
|
||||
import { useCallback, useState } from "react"
|
||||
|
||||
import { softSpringPreset } from "~/components/ui/constants/spring"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useAuthQuery, useI18n } from "~/hooks/common"
|
||||
import { boosts, useBoostFeedMutation } from "~/queries/boosts"
|
||||
import { useWallet } from "~/queries/wallet"
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Trans, useTranslation } from "react-i18next"
|
||||
|
||||
import { CopyButton, ShikiHighLighter } from "~/components/ui/code-highlighter"
|
||||
import { useShikiDefaultTheme } from "~/components/ui/code-highlighter/shiki/hooks"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useAuthQuery } from "~/hooks/common"
|
||||
import { FollowSummary } from "~/modules/feed/feed-summary"
|
||||
import { feed as feedQuery, useClaimFeedMutation } from "~/queries/feed"
|
||||
|
||||
@@ -24,7 +24,7 @@ import { z } from "zod"
|
||||
import { getSidebarActiveView } from "~/atoms/sidebar"
|
||||
import { CopyButton } from "~/components/ui/code-highlighter"
|
||||
import { Markdown } from "~/components/ui/markdown/Markdown"
|
||||
import { useCurrentModal, useIsTopModal, useModalStack } from "~/components/ui/modal"
|
||||
import { useCurrentModal, useIsTopModal, useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import {
|
||||
MissingOptionalParamError,
|
||||
parseFullPathParams,
|
||||
|
||||
@@ -25,7 +25,7 @@ import { toast } from "sonner"
|
||||
import { z } from "zod"
|
||||
|
||||
import { Autocomplete } from "~/components/ui/auto-completion"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useAuthQuery, useI18n } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { tipcClient } from "~/lib/client"
|
||||
|
||||
@@ -18,7 +18,7 @@ import { useEventCallback } from "usehooks-ts"
|
||||
import { useUserRole } from "~/atoms/user"
|
||||
import { CustomSafeError } from "~/components/errors/helper"
|
||||
import { CopyButton } from "~/components/ui/code-highlighter"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { MAX_TRIAL_USER_INBOX_SUBSCRIPTION } from "~/constants/limit"
|
||||
import { createErrorToaster } from "~/lib/error-parser"
|
||||
import { useInboxList } from "~/queries/inboxes"
|
||||
|
||||
@@ -24,7 +24,7 @@ import { useTranslation } from "react-i18next"
|
||||
import { toast } from "sonner"
|
||||
import { z } from "zod"
|
||||
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useI18n } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { tipcClient } from "~/lib/client"
|
||||
|
||||
@@ -9,8 +9,8 @@ import { m } from "~/components/common/Motion"
|
||||
import { RelativeTime } from "~/components/ui/datetime"
|
||||
import { Media } from "~/components/ui/media"
|
||||
import type { ModalContentComponent } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { PlainModal } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
|
||||
import { urlToIframe } from "~/lib/url-to-iframe"
|
||||
import { FeedIcon } from "~/modules/feed/feed-icon"
|
||||
|
||||
@@ -9,7 +9,7 @@ import { AudioPlayer, useAudioPlayerAtomSelector } from "~/atoms/player"
|
||||
import { useUISettingKey } from "~/atoms/settings/ui"
|
||||
import { RelativeTime } from "~/components/ui/datetime"
|
||||
import { Media } from "~/components/ui/media"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { FEED_COLLECTION_LIST } from "~/constants"
|
||||
import { useAsRead } from "~/hooks/biz/useAsRead"
|
||||
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Trans, useTranslation } from "react-i18next"
|
||||
|
||||
import { subscriptionActions } from "~/store/subscription"
|
||||
|
||||
import { useCurrentModal } from "../../components/ui/modal"
|
||||
import { useCurrentModal } from "../../components/ui/modal/stacked/hooks"
|
||||
|
||||
export function CategoryRemoveDialogContent({ feedIdList }: { feedIdList: string[] }) {
|
||||
const { t } = useTranslation()
|
||||
|
||||
@@ -13,7 +13,7 @@ import { useEffect } from "react"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { z } from "zod"
|
||||
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { Queries } from "~/queries"
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useUISettingKey } from "~/atoms/settings/ui"
|
||||
import { KbdCombined } from "~/components/ui/kbd/Kbd"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal"
|
||||
import { PlainModal } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { shortcuts, shortcutsType } from "~/constants/shortcuts"
|
||||
import { useSwitchHotKeyScope } from "~/hooks/common"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import { useTranslation } from "react-i18next"
|
||||
import { setAppSearchOpen, useAppSearchOpen } from "~/atoms/app"
|
||||
import { ExPromise } from "~/components/common/ExPromise"
|
||||
import { LoadMoreIndicator } from "~/components/common/LoadMoreIndicator"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { ROUTE_ENTRY_PENDING } from "~/constants"
|
||||
import { useNavigateEntry } from "~/hooks/biz/useNavigateEntry"
|
||||
import { useI18n } from "~/hooks/common"
|
||||
|
||||
@@ -10,8 +10,8 @@ import { z } from "zod"
|
||||
|
||||
import { getSidebarActiveView } from "~/atoms/sidebar"
|
||||
import { m } from "~/components/common/Motion"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { PlainModal } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { HotKeyScopeMap } from "~/constants"
|
||||
import { tipcClient } from "~/lib/client"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useCallback } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useServerConfigs } from "~/atoms/server-configs"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { getLevelMultiplier } from "~/lib/utils"
|
||||
import { Balance } from "~/modules/wallet/balance"
|
||||
import { Level } from "~/modules/wallet/level"
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Trans, useTranslation } from "react-i18next"
|
||||
import { toast } from "sonner"
|
||||
import { z } from "zod"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { Balance } from "~/modules/wallet/balance"
|
||||
import { useWallet, wallet as walletActions } from "~/queries/wallet"
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Fragment, memo, useEffect, useMemo, useRef, useState } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { m } from "~/components/common/Motion"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useFollow } from "~/hooks/biz/useFollow"
|
||||
import { useAuthQuery, useI18n } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
|
||||
@@ -11,7 +11,8 @@ import { memo, Suspense, useCallback, useEffect, useRef } from "react"
|
||||
|
||||
import { useUISettingSelector } from "~/atoms/settings/ui"
|
||||
import { m } from "~/components/common/Motion"
|
||||
import { resizableOnly, useResizeableModal } from "~/components/ui/modal"
|
||||
import { resizableOnly } from "~/components/ui/modal"
|
||||
import { useResizeableModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { ElECTRON_CUSTOM_TITLEBAR_HEIGHT } from "~/constants"
|
||||
import { useActivationModal } from "~/modules/activation"
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import * as React from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { setUISetting, useUISettingSelector } from "~/atoms/settings/ui"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { tipcClient } from "~/lib/client"
|
||||
|
||||
const FALLBACK_FONT = "Default (UI Font)"
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
useGeneralSettingValue,
|
||||
} from "~/atoms/settings/general"
|
||||
import { createDefaultSettings, setUISetting, useUISettingSelector } from "~/atoms/settings/ui"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useProxyValue, useSetProxy } from "~/hooks/biz/useProxySetting"
|
||||
import { fallbackLanguage } from "~/i18n"
|
||||
import { initAnalytics } from "~/initialize/analytics"
|
||||
|
||||
@@ -24,7 +24,7 @@ import { toast } from "sonner"
|
||||
|
||||
import { useServerConfigs } from "~/atoms/server-configs"
|
||||
import { CopyButton } from "~/components/ui/code-highlighter"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useAuthQuery } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { toastFetchError } from "~/lib/error-parser"
|
||||
|
||||
@@ -23,7 +23,7 @@ import { cn } from "@follow/utils/utils"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import { toast } from "sonner"
|
||||
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useAuthQuery, useI18n } from "~/hooks/common"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { Balance } from "~/modules/wallet/balance"
|
||||
|
||||
@@ -34,7 +34,7 @@ import { z } from "zod"
|
||||
|
||||
import type { Suggestion } from "~/components/ui/auto-completion"
|
||||
import { Autocomplete } from "~/components/ui/auto-completion"
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { apiClient } from "~/lib/api-fetch"
|
||||
import { createErrorToaster } from "~/lib/error-parser"
|
||||
import { FeedCertification } from "~/modules/feed/feed-certification"
|
||||
|
||||
@@ -15,8 +15,8 @@ import type { FC } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { getTrendingAggregates } from "~/api/trending"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal"
|
||||
import { DrawerModalLayout } from "~/components/ui/modal/stacked/custom-modal"
|
||||
import { useCurrentModal, useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useFollow } from "~/hooks/biz/useFollow"
|
||||
import { FeedIcon } from "~/modules/feed/feed-icon"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { FC } from "react"
|
||||
import { useState } from "react"
|
||||
import { useNavigate } from "react-router-dom"
|
||||
|
||||
import { useCurrentModal } from "~/components/ui/modal"
|
||||
import { useCurrentModal } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useI18n } from "~/hooks/common"
|
||||
import { UserAvatar } from "~/modules/user/UserAvatar"
|
||||
import { useWallet, useWalletTipMutation } from "~/queries/wallet"
|
||||
|
||||
@@ -6,7 +6,7 @@ import { toast } from "sonner"
|
||||
|
||||
import { getGeneralSettings } from "~/atoms/settings/general"
|
||||
import { getUISettings } from "~/atoms/settings/ui"
|
||||
import { useModalStack } from "~/components/ui/modal"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
import { useDiscoverRSSHubRouteModal } from "~/hooks/biz/useDiscoverRSSHubRoute"
|
||||
import { useFollow } from "~/hooks/biz/useFollow"
|
||||
import { usePresentUserProfileModal } from "~/modules/profile/hooks"
|
||||
|
||||
Reference in New Issue
Block a user