mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:01:46 +08:00
refactor: route next/navigation through compat re-export (#33636)
This commit is contained in:
@@ -13,7 +13,7 @@ vi.mock('@/config', async (importOriginal) => {
|
||||
}
|
||||
})
|
||||
|
||||
vi.mock('next/navigation', () => ({
|
||||
vi.mock('@/next/navigation', () => ({
|
||||
useSearchParams: vi.fn(() => new URLSearchParams()),
|
||||
}))
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
import type { FC, PropsWithChildren } from 'react'
|
||||
import type { ChatConfig } from '@/app/components/base/chat/types'
|
||||
import type { AppData, AppMeta } from '@/models/share'
|
||||
import { usePathname, useSearchParams } from 'next/navigation'
|
||||
import { useEffect } from 'react'
|
||||
import { create } from 'zustand'
|
||||
import { getProcessedSystemVariablesFromUrlParams } from '@/app/components/base/chat/utils'
|
||||
import Loading from '@/app/components/base/loading'
|
||||
import { AccessMode } from '@/models/access-control'
|
||||
import { usePathname, useSearchParams } from '@/next/navigation'
|
||||
import { useGetWebAppAccessModeByCode } from '@/service/use-share'
|
||||
import { useIsSystemFeaturesPending } from './global-public-context'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user