refactor: route next/navigation through compat re-export (#33636)

This commit is contained in:
yyh
2026-03-18 12:57:03 +08:00
committed by GitHub
parent 04c0bf61fa
commit 296b7044af
269 changed files with 320 additions and 328 deletions

View File

@ -80,7 +80,7 @@ function createMouseEvent() {
} as unknown as React.MouseEvent<Element, MouseEvent>
}
vi.mock('next/dynamic', () => ({
vi.mock('@/next/dynamic', () => ({
default: () => () => null,
}))

View File

@ -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'