mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
refactor: route next/navigation through compat re-export (#33636)
This commit is contained in:
@ -80,7 +80,7 @@ function createMouseEvent() {
|
||||
} as unknown as React.MouseEvent<Element, MouseEvent>
|
||||
}
|
||||
|
||||
vi.mock('next/dynamic', () => ({
|
||||
vi.mock('@/next/dynamic', () => ({
|
||||
default: () => () => null,
|
||||
}))
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import type { HeaderInNormalProps } from './header-in-normal'
|
||||
import type { HeaderInRestoringProps } from './header-in-restoring'
|
||||
import type { HeaderInHistoryProps } from './header-in-view-history'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import dynamic from '@/next/dynamic'
|
||||
import { usePathname } from '@/next/navigation'
|
||||
import {
|
||||
useWorkflowMode,
|
||||
} from '../hooks'
|
||||
|
||||
Reference in New Issue
Block a user